diff options
Diffstat (limited to 'arch/mips/mm/c-r4k.c')
-rw-r--r-- | arch/mips/mm/c-r4k.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index 48d731c2f08a..b90147399ea4 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <asm/system.h> | 26 | #include <asm/system.h> |
27 | #include <asm/mmu_context.h> | 27 | #include <asm/mmu_context.h> |
28 | #include <asm/war.h> | 28 | #include <asm/war.h> |
29 | #include <asm/cacheflush.h> /* for run_uncached() */ | ||
29 | 30 | ||
30 | static unsigned long icache_size, dcache_size, scache_size; | 31 | static unsigned long icache_size, dcache_size, scache_size; |
31 | 32 | ||
@@ -1119,7 +1120,6 @@ static int __init probe_scache(void) | |||
1119 | return 1; | 1120 | return 1; |
1120 | } | 1121 | } |
1121 | 1122 | ||
1122 | typedef int (*probe_func_t)(unsigned long); | ||
1123 | extern int r5k_sc_init(void); | 1123 | extern int r5k_sc_init(void); |
1124 | extern int rm7k_sc_init(void); | 1124 | extern int rm7k_sc_init(void); |
1125 | 1125 | ||
@@ -1127,7 +1127,6 @@ static void __init setup_scache(void) | |||
1127 | { | 1127 | { |
1128 | struct cpuinfo_mips *c = ¤t_cpu_data; | 1128 | struct cpuinfo_mips *c = ¤t_cpu_data; |
1129 | unsigned int config = read_c0_config(); | 1129 | unsigned int config = read_c0_config(); |
1130 | probe_func_t probe_scache_kseg1; | ||
1131 | int sc_present = 0; | 1130 | int sc_present = 0; |
1132 | 1131 | ||
1133 | /* | 1132 | /* |
@@ -1140,8 +1139,7 @@ static void __init setup_scache(void) | |||
1140 | case CPU_R4000MC: | 1139 | case CPU_R4000MC: |
1141 | case CPU_R4400SC: | 1140 | case CPU_R4400SC: |
1142 | case CPU_R4400MC: | 1141 | case CPU_R4400MC: |
1143 | probe_scache_kseg1 = (probe_func_t) (CKSEG1ADDR(&probe_scache)); | 1142 | sc_present = run_uncached(probe_scache); |
1144 | sc_present = probe_scache_kseg1(config); | ||
1145 | if (sc_present) | 1143 | if (sc_present) |
1146 | c->options |= MIPS_CPU_CACHE_CDEX_S; | 1144 | c->options |= MIPS_CPU_CACHE_CDEX_S; |
1147 | break; | 1145 | break; |