2006-01-14 22:17:38

by Alexey Dobriyan

[permalink] [raw]
Subject: [PATCH] arm26: add L1_CACHE_SHIFT

Fix reiserfs compilation as a side effect =)

Signed-off-by: Alexey Dobriyan <[email protected]>
---

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



2006-01-15 23:05:14

by Ian molton

[permalink] [raw]
Subject: Re: [PATCH] arm26: add L1_CACHE_SHIFT

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

Obviosuly correct...

Signed-off-by: Ian Molton <[email protected]>
Signed-off-by: Alexey Dobriyan <[email protected]>
---

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