]> git.neil.brown.name Git - history.git/commitdiff
PPC32: define L1_CACHE_SHIFT
authorPaul Mackerras <paulus@samba.org>
Wed, 28 Aug 2002 07:46:53 +0000 (17:46 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 28 Aug 2002 07:46:53 +0000 (17:46 +1000)
include/asm-ppc/cache.h

index 54c2d4c366ed05a7eef58d35f87cf8297959abd4..ff25338b1077e2dcc45b430cfebd3126f827de85 100644 (file)
 #define LG_L1_CACHE_LINE_SIZE  7
 #define MAX_COPY_PREFETCH      1
 #else
-#define        L1_CACHE_LINE_SIZE  32
+#define        L1_CACHE_LINE_SIZE      32
 #define LG_L1_CACHE_LINE_SIZE  5
 #define MAX_COPY_PREFETCH      4
 #endif
 
 #define        L1_CACHE_BYTES L1_CACHE_LINE_SIZE
+#define L1_CACHE_SHIFT LG_L1_CACHE_LINE_SIZE
 #define        SMP_CACHE_BYTES L1_CACHE_BYTES
 
 #define        L1_CACHE_ALIGN(x)       (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))