projects/linux·commit 511c3a2b

[PATCH] arm26: add L1_CACHE_SHIFT

511c3a2b · Alexey Dobriyan <[email protected]> · 2006-01-16 22:13:56 -08:00

Fix reiserfs compilation as a side effect =)

Signed-off-by: Alexey Dobriyan <[email protected]>
Acked-by: Ian Molton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
511c3a2beefbb7d263063f2fef48615fba2d7255
Parents
96419b7c

Changes

1 files changed · +2 −1

FileStatusAddDelContent
include/asm-arm26/cache.hmodified+2−1View file

include/asm-arm26/cache.h

View file
diff --git a/include/asm-arm26/cache.h b/include/asm-arm26/cache.h
index f52ca1b..8c3abcf 100644
--- 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