From: Harvey Harrison <harvey.harrison@gmail.com>
To: David Howells <dhowells@redhat.com>
Cc: Russell King <rmk@arm.linux.org.uk>,
Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: FRV/ARM unaligned access question
Date: Wed, 08 Oct 2008 13:22:50 -0700 [thread overview]
Message-ID: <1223497370.8195.97.camel@brick> (raw)
In-Reply-To: <19824.1223464566@redhat.com>
On Wed, 2008-10-08 at 12:16 +0100, David Howells wrote:
> Harvey Harrison <harvey.harrison@gmail.com> wrote:
>
> Switching to the packed struct algorithms also reduces the kernel size very
> slightly. Before:
>
> warthog>size vmlinux
> text data bss dec hex filename
> 2207836 66588 150189 2424613 24ff25 vmlinux
>
> After:
>
> warthog>size vmlinux
> text data bss dec hex filename
> 2207804 66588 150189 2424581 24ff05 vmlinux
Probably smaller as now the le values aren't being byteswapped anymore,
only the native endianess can use the struct version. Care to look at
the kernel size with the following instead?
From: Harvey Harrison <harvey.harrison@gmail.com>
Subject: [PATCH] frv: switch unaligned access to the packed-struct implementation
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
include/asm-frv/unaligned.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/asm-frv/unaligned.h b/include/asm-frv/unaligned.h
index 839a2fb..6c61c05 100644
--- a/include/asm-frv/unaligned.h
+++ b/include/asm-frv/unaligned.h
@@ -13,7 +13,7 @@
#define _ASM_UNALIGNED_H
#include <linux/unaligned/le_byteshift.h>
-#include <linux/unaligned/be_byteshift.h>
+#include <linux/unaligned/be_struct.h>
#include <linux/unaligned/generic.h>
#define get_unaligned __get_unaligned_be
--
1.6.0.2.471.g47a76
next prev parent reply other threads:[~2008-10-08 20:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-08 7:26 FRV/ARM unaligned access question Harvey Harrison
2008-10-08 7:35 ` Russell King
2008-10-08 7:36 ` Harvey Harrison
2008-10-08 9:10 ` Russell King
2008-10-08 9:34 ` Harvey Harrison
2008-10-08 11:16 ` David Howells
2008-10-08 20:22 ` Harvey Harrison [this message]
2008-10-09 11:35 ` David Howells
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1223497370.8195.97.camel@brick \
--to=harvey.harrison@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=dhowells@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox