]> Pileus Git - ~andy/linux/blobdiff - include/asm-sh/processor.h
sh: remove PTRACE_O_TRACESYSGOOD from asm/ptrace.h
[~andy/linux] / include / asm-sh / processor.h
index 56cb3c89f840f1b3757e64b9f7f5e7ccee361c20..ab0028db645a49d0ed24a4c1a25363ef51f81f60 100644 (file)
@@ -71,17 +71,12 @@ 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 boot_cpu_data;
-
-#ifdef CONFIG_SMP
 extern struct sh_cpuinfo cpu_data[];
+#define boot_cpu_data cpu_data[0]
 #define current_cpu_data cpu_data[smp_processor_id()]
-#else
-#define cpu_data (&boot_cpu_data)
-#define current_cpu_data boot_cpu_data
-#endif
+#define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
 
 /*
  * User space process size: 2GB.