diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-10-30 09:28:52 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-10-30 09:28:52 +0100 |
commit | 2278caa3c850c8f0aac4e1db7649a2c90cdaa9e9 (patch) | |
tree | 1aef85a32a07391564fc755d6d541d12029adadd /include | |
parent | sh: Kill off legacy embedded ramdisk section. (diff) | |
download | linux-2278caa3c850c8f0aac4e1db7649a2c90cdaa9e9.tar.xz linux-2278caa3c850c8f0aac4e1db7649a2c90cdaa9e9.zip |
sh: Use generic SMP_CACHE_BYTES/L1_CACHE_ALIGN.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-sh/cache.h | 3 | ||||
-rw-r--r-- | include/asm-sh/processor.h | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/include/asm-sh/cache.h b/include/asm-sh/cache.h index 7a18649d1ccb..0fe7cf9a0433 100644 --- a/include/asm-sh/cache.h +++ b/include/asm-sh/cache.h @@ -18,9 +18,6 @@ #define SH_CACHE_ASSOC 8 #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) -#define SMP_CACHE_BYTES L1_CACHE_BYTES - -#define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1)) #ifndef __ASSEMBLY__ struct cache_info { diff --git a/include/asm-sh/processor.h b/include/asm-sh/processor.h index 4f2922a1979c..ab0028db645a 100644 --- a/include/asm-sh/processor.h +++ b/include/asm-sh/processor.h @@ -71,7 +71,7 @@ struct sh_cpuinfo { struct cache_info scache; /* Secondary cache */ unsigned long flags; -} __attribute__ ((aligned(SMP_CACHE_BYTES))); +} __attribute__ ((aligned(L1_CACHE_BYTES))); extern struct sh_cpuinfo cpu_data[]; #define boot_cpu_data cpu_data[0] |