소스 검색

sh: Use generic SMP_CACHE_BYTES/L1_CACHE_ALIGN.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 17 년 전
부모
커밋
2278caa3c8
2개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 3
      include/asm-sh/cache.h
  2. 1 1
      include/asm-sh/processor.h

+ 0 - 3
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 {

+ 1 - 1
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]