sh: More SH-5 cpuinfo tidying.
authorPaul Mundt <lethal@linux-sh.org>
Sat, 10 Nov 2007 11:01:51 +0000 (20:01 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 28 Jan 2008 04:18:43 +0000 (13:18 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/cpu-sh5/cache.h
include/asm-sh/processor.h
include/asm-sh/processor_32.h
include/asm-sh/processor_64.h

index 2d1f9c28b923592e473761f78b5471958b78bd97..7eaa8894649f66b68bdede3d28f1206e0c9998cc 100644 (file)
 #define SH_CACHE_VALID         (1LL<<0)
 #define SH_CACHE_UPDATED       (1LL<<57)
 
+/* Unimplemented compat bits.. */
+#define SH_CACHE_COMBINED      0
+#define SH_CACHE_ASSOC         0
+
 /* Cache flags */
 #define SH_CACHE_MODE_WT       (1LL<<0)
 #define SH_CACHE_MODE_WB       (1LL<<1)
index bf01f486c3e1ad5c0768c27d5ef0a26fd7b657a0..b98c882d5036967271cddfb97e0c1dd549c36562 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __ASM_SH_PROCESSOR_H
 #define __ASM_SH_PROCESSOR_H
 
+#include <asm/cpu-features.h>
+
 /*
  *  CPU type and hardware bug flags. Kept separately for each CPU.
  *
index e10d0ee0c22bc7aa5075a821e72214487b479bc3..35040fe43e5e8c0286b71c068ccb5300843b2a28 100644 (file)
@@ -14,7 +14,6 @@
 #include <asm/types.h>
 #include <asm/cache.h>
 #include <asm/ptrace.h>
-#include <asm/cpu-features.h>
 
 /*
  * Default implementation of macro that returns current
index 6ad23387d7ba076a59e3f9baed2f731afb4314f5..ecd6b403f7db62c5f13ad20249205c302dd2792d 100644 (file)
@@ -66,12 +66,14 @@ struct sh_cpuinfo {
        /* TLB info */
        struct tlb_info itlb;
        struct tlb_info dtlb;
-};
 
-extern struct sh_cpuinfo boot_cpu_data;
+       unsigned long flags;
+};
 
-#define cpu_data (&boot_cpu_data)
-#define current_cpu_data boot_cpu_data
+extern struct sh_cpuinfo cpu_data[];
+#define boot_cpu_data cpu_data[0]
+#define current_cpu_data cpu_data[smp_processor_id()]
+#define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
 
 #endif