diff options
Diffstat (limited to 'arch/sh/kernel/cpu/sh2/probe.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh2/probe.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/arch/sh/kernel/cpu/sh2/probe.c b/arch/sh/kernel/cpu/sh2/probe.c index abbf17427e52..5916d9096b99 100644 --- a/arch/sh/kernel/cpu/sh2/probe.c +++ b/arch/sh/kernel/cpu/sh2/probe.c | |||
@@ -10,26 +10,25 @@ | |||
10 | * for more details. | 10 | * for more details. |
11 | */ | 11 | */ |
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/smp.h> | ||
14 | #include <asm/processor.h> | 13 | #include <asm/processor.h> |
15 | #include <asm/cache.h> | 14 | #include <asm/cache.h> |
16 | 15 | ||
17 | int __init detect_cpu_and_cache_system(void) | 16 | int __init detect_cpu_and_cache_system(void) |
18 | { | 17 | { |
19 | #if defined(CONFIG_CPU_SUBTYPE_SH7619) | 18 | #if defined(CONFIG_CPU_SUBTYPE_SH7619) |
20 | current_cpu_data.type = CPU_SH7619; | 19 | boot_cpu_data.type = CPU_SH7619; |
21 | current_cpu_data.dcache.ways = 4; | 20 | boot_cpu_data.dcache.ways = 4; |
22 | current_cpu_data.dcache.way_incr = (1<<12); | 21 | boot_cpu_data.dcache.way_incr = (1<<12); |
23 | current_cpu_data.dcache.sets = 256; | 22 | boot_cpu_data.dcache.sets = 256; |
24 | current_cpu_data.dcache.entry_shift = 4; | 23 | boot_cpu_data.dcache.entry_shift = 4; |
25 | current_cpu_data.dcache.linesz = L1_CACHE_BYTES; | 24 | boot_cpu_data.dcache.linesz = L1_CACHE_BYTES; |
26 | current_cpu_data.dcache.flags = 0; | 25 | boot_cpu_data.dcache.flags = 0; |
27 | #endif | 26 | #endif |
28 | /* | 27 | /* |
29 | * SH-2 doesn't have separate caches | 28 | * SH-2 doesn't have separate caches |
30 | */ | 29 | */ |
31 | current_cpu_data.dcache.flags |= SH_CACHE_COMBINED; | 30 | boot_cpu_data.dcache.flags |= SH_CACHE_COMBINED; |
32 | current_cpu_data.icache = current_cpu_data.dcache; | 31 | boot_cpu_data.icache = boot_cpu_data.dcache; |
33 | 32 | ||
34 | return 0; | 33 | return 0; |
35 | } | 34 | } |