linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm26: add L1_CACHE_SHIFT
@ 2006-01-14 22:34 Alexey Dobriyan
  2006-01-15 23:06 ` Ian Molton
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2006-01-14 22:34 UTC (permalink / raw)
  To: Ian Molton; +Cc: Al Viro, linux-kernel

Fix reiserfs compilation as a side effect =)

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 include/asm-arm26/cache.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/include/asm-arm26/cache.h
+++ b/include/asm-arm26/cache.h
@@ -4,7 +4,8 @@
 #ifndef __ASMARM_CACHE_H
 #define __ASMARM_CACHE_H
 
-#define        L1_CACHE_BYTES  32
+#define        L1_CACHE_SHIFT  5
+#define        L1_CACHE_BYTES  (1 << L1_CACHE_SHIFT)
 #define        L1_CACHE_ALIGN(x)       (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
 #define        SMP_CACHE_BYTES L1_CACHE_BYTES
 


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

* Re: [PATCH] arm26: add L1_CACHE_SHIFT
  2006-01-14 22:34 [PATCH] arm26: add L1_CACHE_SHIFT Alexey Dobriyan
@ 2006-01-15 23:06 ` Ian Molton
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Molton @ 2006-01-15 23:06 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: Al Viro, linux-kernel

Alexey Dobriyan wrote:
> Fix reiserfs compilation as a side effect =)

Obviosuly correct...

Signed-off-by: Ian Molton <spyro@f2s.com>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

  include/asm-arm26/cache.h |    3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

--- a/include/asm-arm26/cache.h
+++ b/include/asm-arm26/cache.h
@@ -4,7 +4,8 @@
  #ifndef __ASMARM_CACHE_H
  #define __ASMARM_CACHE_H

-#define        L1_CACHE_BYTES  32
+#define        L1_CACHE_SHIFT  5
+#define        L1_CACHE_BYTES  (1 << L1_CACHE_SHIFT)
  #define        L1_CACHE_ALIGN(x) 
(((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
  #define        SMP_CACHE_BYTES L1_CACHE_BYTES





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

end of thread, other threads:[~2006-01-15 23:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-14 22:34 [PATCH] arm26: add L1_CACHE_SHIFT Alexey Dobriyan
2006-01-15 23:06 ` Ian Molton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).