diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-10 12:01:51 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-28 05:18:43 +0100 |
commit | 76168c21b78a0bd684d4687d14a2bd76bcf92762 (patch) | |
tree | d4ed090163321bc5b92494014ec8ed0e4e794d28 /include/asm-sh/processor_64.h | |
parent | sh: Consolidate slab/kmalloc minalign values. (diff) | |
download | linux-76168c21b78a0bd684d4687d14a2bd76bcf92762.tar.xz linux-76168c21b78a0bd684d4687d14a2bd76bcf92762.zip |
sh: More SH-5 cpuinfo tidying.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/processor_64.h')
-rw-r--r-- | include/asm-sh/processor_64.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/asm-sh/processor_64.h b/include/asm-sh/processor_64.h index 6ad23387d7ba..ecd6b403f7db 100644 --- a/include/asm-sh/processor_64.h +++ b/include/asm-sh/processor_64.h @@ -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 |