Skip to content

Commit 6ce91ba

Browse files
seehearfeeltsbogend
authored andcommitted
MIPS: Remove cpu_has_6k_cache and cpu_has_8k_cache in cpu_cache_init()
Since commit 02cf211 ("Cleanup the mess in cpu_cache_init."), cpu_has_6k_cache and cpu_has_8k_cache have no user, r6k_cache_init() and r8k_cache_init() are not defined for over 15 years, just remove them. Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 0df162e commit 6ce91ba

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

arch/mips/include/asm/cpu-features.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@
115115
#ifndef cpu_has_3k_cache
116116
#define cpu_has_3k_cache __isa_lt_and_opt(1, MIPS_CPU_3K_CACHE)
117117
#endif
118-
#define cpu_has_6k_cache 0
119-
#define cpu_has_8k_cache 0
120118
#ifndef cpu_has_4k_cache
121119
#define cpu_has_4k_cache __isa_ge_or_opt(1, MIPS_CPU_4K_CACHE)
122120
#endif

arch/mips/mm/cache.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -188,21 +188,11 @@ void cpu_cache_init(void)
188188

189189
r3k_cache_init();
190190
}
191-
if (cpu_has_6k_cache) {
192-
extern void __weak r6k_cache_init(void);
193-
194-
r6k_cache_init();
195-
}
196191
if (cpu_has_4k_cache) {
197192
extern void __weak r4k_cache_init(void);
198193

199194
r4k_cache_init();
200195
}
201-
if (cpu_has_8k_cache) {
202-
extern void __weak r8k_cache_init(void);
203-
204-
r8k_cache_init();
205-
}
206196
if (cpu_has_tx39_cache) {
207197
extern void __weak tx39_cache_init(void);
208198

0 commit comments

Comments
 (0)