public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/4] xtensa: Change unaligned access to use packed struct implementation
@ 2008-10-08  6:38 Harvey Harrison
  2008-10-10  5:16 ` Chris Zankel
  0 siblings, 1 reply; 3+ messages in thread
From: Harvey Harrison @ 2008-10-08  6:38 UTC (permalink / raw)
  To: Chris Zankel; +Cc: Andrew Morton, LKML

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
There are only 3 arches that use the memmove-based implementation, there
doesn't seem to be any obvious reason not to use the struct implementation.

Chris?

 include/asm-xtensa/unaligned.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/asm-xtensa/unaligned.h b/include/asm-xtensa/unaligned.h
index 8f3424f..1a242b2 100644
--- a/include/asm-xtensa/unaligned.h
+++ b/include/asm-xtensa/unaligned.h
@@ -11,13 +11,13 @@
 #define _ASM_XTENSA_UNALIGNED_H
 
 #ifdef __XTENSA_EL__
-# include <linux/unaligned/le_memmove.h>
+# include <linux/unaligned/le_struct.h>
 # include <linux/unaligned/be_byteshift.h>
 # include <linux/unaligned/generic.h>
 # define get_unaligned	__get_unaligned_le
 # define put_unaligned	__put_unaligned_le
 #elif defined(__XTENSA_EB__)
-# include <linux/unaligned/be_memmove.h>
+# include <linux/unaligned/be_struct.h>
 # include <linux/unaligned/le_byteshift.h>
 # include <linux/unaligned/generic.h>
 # define get_unaligned	__get_unaligned_be
-- 
1.6.0.2.471.g47a76



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 3/4] xtensa: Change unaligned access to use packed struct implementation
  2008-10-08  6:38 [PATCH 3/4] xtensa: Change unaligned access to use packed struct implementation Harvey Harrison
@ 2008-10-10  5:16 ` Chris Zankel
  2008-10-10  5:39   ` Harvey Harrison
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Zankel @ 2008-10-10  5:16 UTC (permalink / raw)
  To: Harvey Harrison; +Cc: Andrew Morton, LKML, Bob Wilson

Hi Harvey,

Please allow me a couple of days to look into it. I don't know the 
historic reasons why the memmove variant was chosen.

Thanks,
-Chris


Harvey Harrison wrote:
> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
> ---
> There are only 3 arches that use the memmove-based implementation, there
> doesn't seem to be any obvious reason not to use the struct implementation.
> 
> Chris?
> 
>  include/asm-xtensa/unaligned.h |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/include/asm-xtensa/unaligned.h b/include/asm-xtensa/unaligned.h
> index 8f3424f..1a242b2 100644
> --- a/include/asm-xtensa/unaligned.h
> +++ b/include/asm-xtensa/unaligned.h
> @@ -11,13 +11,13 @@
>  #define _ASM_XTENSA_UNALIGNED_H
>  
>  #ifdef __XTENSA_EL__
> -# include <linux/unaligned/le_memmove.h>
> +# include <linux/unaligned/le_struct.h>
>  # include <linux/unaligned/be_byteshift.h>
>  # include <linux/unaligned/generic.h>
>  # define get_unaligned	__get_unaligned_le
>  # define put_unaligned	__put_unaligned_le
>  #elif defined(__XTENSA_EB__)
> -# include <linux/unaligned/be_memmove.h>
> +# include <linux/unaligned/be_struct.h>
>  # include <linux/unaligned/le_byteshift.h>
>  # include <linux/unaligned/generic.h>
>  # define get_unaligned	__get_unaligned_be


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 3/4] xtensa: Change unaligned access to use packed struct implementation
  2008-10-10  5:16 ` Chris Zankel
@ 2008-10-10  5:39   ` Harvey Harrison
  0 siblings, 0 replies; 3+ messages in thread
From: Harvey Harrison @ 2008-10-10  5:39 UTC (permalink / raw)
  To: Chris Zankel; +Cc: Andrew Morton, LKML, Bob Wilson

On Thu, 2008-10-09 at 22:16 -0700, Chris Zankel wrote:
> Hi Harvey,
> 
> Please allow me a couple of days to look into it. I don't know the 
> historic reasons why the memmove variant was chosen.
> 
> Thanks,
> -Chris
> 

Sure, from the comments in the original version, it looks like it was done
this way to avoid __builtin_memcpy from being generated.  But maybe there was another
reason?

Harvey




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-10  5:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-08  6:38 [PATCH 3/4] xtensa: Change unaligned access to use packed struct implementation Harvey Harrison
2008-10-10  5:16 ` Chris Zankel
2008-10-10  5:39   ` Harvey Harrison

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox