diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-05-10 03:57:37 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-05-17 02:36:19 -0400 |
commit | 3588fa621c4c9462a9c56f24b18ded329dc7622a (patch) | |
tree | de2577e020ee1fb4301c2c00259820cd76296970 /include/linux/cache.h | |
parent | ff86d4722124c300c40b85b6eb8ef2d410ab303c (diff) |
fixes for 32 bit builds/non x86 archs
Diffstat (limited to 'include/linux/cache.h')
-rw-r--r-- | include/linux/cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/cache.h b/include/linux/cache.h index 4ee609ae..c61167ca 100644 --- a/include/linux/cache.h +++ b/include/linux/cache.h @@ -1,7 +1,8 @@ #ifndef __TOOLS_LINUX_CACHE_H #define __TOOLS_LINUX_CACHE_H -#define L1_CACHE_BYTES 64 +#define L1_CACHE_SHIFT 6 +#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) #define SMP_CACHE_BYTES L1_CACHE_BYTES #define L1_CACHE_ALIGN(x) __ALIGN_KERNEL(x, L1_CACHE_BYTES) |