From: Michal Simek Date: Mon, 26 Apr 2010 11:43:23 +0000 (+0200) Subject: microblaze: Define correct L1_CACHE_SHIFT value X-Git-Tag: v2.6.34-rc7~12^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=598acab44dcbda0e300d9d080e81566334138e7d;p=platform%2Fupstream%2Fkernel-adaptation-pc.git microblaze: Define correct L1_CACHE_SHIFT value Microblaze cacheline length is configurable and current cpu uses two cacheline length 4 and 8. We are taking conservative maximum value to be sure that cacheline alignment is satisfied for all cases. Here is the calculation for cacheline lenght 8 32bit=4Byte values which is corresponding with SHIFT 5. Signed-off-by: Michal Simek --- diff --git a/arch/microblaze/include/asm/cache.h b/arch/microblaze/include/asm/cache.h index e522108..4efe96a 100644 --- a/arch/microblaze/include/asm/cache.h +++ b/arch/microblaze/include/asm/cache.h @@ -15,7 +15,7 @@ #include -#define L1_CACHE_SHIFT 2 +#define L1_CACHE_SHIFT 5 /* word-granular cache in microblaze */ #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)