Commit 8a59bcb1 authored by Russell King's avatar Russell King

[ARM] Add L1_CACHE_SHIFT to asm-arm/cache.h

In addition, remove some unnecessary definitions from cache.h
parent 3c409b15
...@@ -4,18 +4,12 @@ ...@@ -4,18 +4,12 @@
#ifndef __ASMARM_CACHE_H #ifndef __ASMARM_CACHE_H
#define __ASMARM_CACHE_H #define __ASMARM_CACHE_H
#define L1_CACHE_BYTES 32 #define L1_CACHE_SHIFT 5
#define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1)) #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
#define SMP_CACHE_BYTES L1_CACHE_BYTES
#ifdef MODULE /*
#define __cacheline_aligned __attribute__((__aligned__(L1_CACHE_BYTES))) * largest L1 which this arch supports
#else */
#define __cacheline_aligned \ #define L1_CACHE_SHIFT_MAX 5
__attribute__((__aligned__(L1_CACHE_BYTES), \
__section__(".data.cacheline_aligned")))
#endif
#define L1_CACHE_SHIFT_MAX 5 /* largest L1 which this arch supports */
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment