diff options
Diffstat (limited to 'arch/mips/mm/c-tx39.c')
-rw-r--r-- | arch/mips/mm/c-tx39.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/mm/c-tx39.c b/arch/mips/mm/c-tx39.c index 560a6de96556..9ea121e8cdce 100644 --- a/arch/mips/mm/c-tx39.c +++ b/arch/mips/mm/c-tx39.c | |||
@@ -69,7 +69,7 @@ static void tx39h_dma_cache_wback_inv(unsigned long addr, unsigned long size) | |||
69 | /* TX39H2,TX39H3 */ | 69 | /* TX39H2,TX39H3 */ |
70 | static inline void tx39_blast_dcache_page(unsigned long addr) | 70 | static inline void tx39_blast_dcache_page(unsigned long addr) |
71 | { | 71 | { |
72 | if (current_cpu_data.cputype != CPU_TX3912) | 72 | if (current_cpu_type() != CPU_TX3912) |
73 | blast_dcache16_page(addr); | 73 | blast_dcache16_page(addr); |
74 | } | 74 | } |
75 | 75 | ||
@@ -307,7 +307,7 @@ static __init void tx39_probe_cache(void) | |||
307 | TX39_CONF_DCS_SHIFT)); | 307 | TX39_CONF_DCS_SHIFT)); |
308 | 308 | ||
309 | current_cpu_data.icache.linesz = 16; | 309 | current_cpu_data.icache.linesz = 16; |
310 | switch (current_cpu_data.cputype) { | 310 | switch (current_cpu_type()) { |
311 | case CPU_TX3912: | 311 | case CPU_TX3912: |
312 | current_cpu_data.icache.ways = 1; | 312 | current_cpu_data.icache.ways = 1; |
313 | current_cpu_data.dcache.ways = 1; | 313 | current_cpu_data.dcache.ways = 1; |
@@ -341,7 +341,7 @@ void __init tx39_cache_init(void) | |||
341 | 341 | ||
342 | tx39_probe_cache(); | 342 | tx39_probe_cache(); |
343 | 343 | ||
344 | switch (current_cpu_data.cputype) { | 344 | switch (current_cpu_type()) { |
345 | case CPU_TX3912: | 345 | case CPU_TX3912: |
346 | /* TX39/H core (writethru direct-map cache) */ | 346 | /* TX39/H core (writethru direct-map cache) */ |
347 | flush_cache_all = tx39h_flush_icache_all; | 347 | flush_cache_all = tx39h_flush_icache_all; |