From: Paul Mackerras Date: Wed, 28 Aug 2002 07:46:53 +0000 (+1000) Subject: PPC32: define L1_CACHE_SHIFT X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=93b317326bd7cb9514235f73d29dfe2c3442f56e;p=history.git PPC32: define L1_CACHE_SHIFT --- diff --git a/include/asm-ppc/cache.h b/include/asm-ppc/cache.h index 54c2d4c366ed..ff25338b1077 100644 --- a/include/asm-ppc/cache.h +++ b/include/asm-ppc/cache.h @@ -21,12 +21,13 @@ #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))