Skip to content

Commit 3aa6704

Browse files
committed
Blackfin: punt dead cache locking code
No one uses these functions, and some are duplicate of existing C code. So just punt the whole thing. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
1 parent 0198b3b commit 3aa6704

5 files changed

Lines changed: 0 additions & 284 deletions

File tree

‎arch/blackfin/Kconfig‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -917,10 +917,6 @@ comment "Cache Support"
917917
config BFIN_ICACHE
918918
bool "Enable ICACHE"
919919
default y
920-
config BFIN_ICACHE_LOCK
921-
bool "Enable Instruction Cache Locking"
922-
depends on BFIN_ICACHE
923-
default n
924920
config BFIN_EXTMEM_ICACHEABLE
925921
bool "Enable ICACHE for external memory"
926922
depends on BFIN_ICACHE

‎arch/blackfin/include/asm/bfin-global.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ extern unsigned long bfin_sic_iwr[];
9999
extern unsigned vr_wakeup;
100100
extern u16 _bfin_swrst; /* shadow for Software Reset Register (SWRST) */
101101

102-
#ifdef CONFIG_BFIN_ICACHE_LOCK
103-
extern void cache_grab_lock(int way);
104-
extern void bfin_cache_lock(int way);
105-
#endif
106-
107102
#endif
108103

109104
#endif /* _BLACKFIN_H_ */

‎arch/blackfin/kernel/setup.c‎

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,57 +1238,6 @@ static int show_cpuinfo(struct seq_file *m, void *v)
12381238
#ifdef __ARCH_SYNC_CORE_ICACHE
12391239
seq_printf(m, "SMP Icache Flushes\t: %lu\n\n", cpudata->icache_invld_count);
12401240
#endif
1241-
#ifdef CONFIG_BFIN_ICACHE_LOCK
1242-
switch ((cpudata->imemctl >> 3) & WAYALL_L) {
1243-
case WAY0_L:
1244-
seq_printf(m, "Way0 Locked-Down\n");
1245-
break;
1246-
case WAY1_L:
1247-
seq_printf(m, "Way1 Locked-Down\n");
1248-
break;
1249-
case WAY01_L:
1250-
seq_printf(m, "Way0,Way1 Locked-Down\n");
1251-
break;
1252-
case WAY2_L:
1253-
seq_printf(m, "Way2 Locked-Down\n");
1254-
break;
1255-
case WAY02_L:
1256-
seq_printf(m, "Way0,Way2 Locked-Down\n");
1257-
break;
1258-
case WAY12_L:
1259-
seq_printf(m, "Way1,Way2 Locked-Down\n");
1260-
break;
1261-
case WAY012_L:
1262-
seq_printf(m, "Way0,Way1 & Way2 Locked-Down\n");
1263-
break;
1264-
case WAY3_L:
1265-
seq_printf(m, "Way3 Locked-Down\n");
1266-
break;
1267-
case WAY03_L:
1268-
seq_printf(m, "Way0,Way3 Locked-Down\n");
1269-
break;
1270-
case WAY13_L:
1271-
seq_printf(m, "Way1,Way3 Locked-Down\n");
1272-
break;
1273-
case WAY013_L:
1274-
seq_printf(m, "Way 0,Way1,Way3 Locked-Down\n");
1275-
break;
1276-
case WAY32_L:
1277-
seq_printf(m, "Way3,Way2 Locked-Down\n");
1278-
break;
1279-
case WAY320_L:
1280-
seq_printf(m, "Way3,Way2,Way0 Locked-Down\n");
1281-
break;
1282-
case WAY321_L:
1283-
seq_printf(m, "Way3,Way2,Way1 Locked-Down\n");
1284-
break;
1285-
case WAYALL_L:
1286-
seq_printf(m, "All Ways are locked\n");
1287-
break;
1288-
default:
1289-
seq_printf(m, "No Ways are locked\n");
1290-
}
1291-
#endif
12921241

12931242
if (cpu_num != num_possible_cpus() - 1)
12941243
return 0;

‎arch/blackfin/mach-common/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ obj-y := \
66
cache.o cache-c.o entry.o head.o \
77
interrupt.o arch_checks.o ints-priority.o
88

9-
obj-$(CONFIG_BFIN_ICACHE_LOCK) += lock.o
109
obj-$(CONFIG_PM) += pm.o dpmc_modes.o
1110
obj-$(CONFIG_CPU_FREQ) += cpufreq.o
1211
obj-$(CONFIG_CPU_VOLTAGE) += dpmc.o

‎arch/blackfin/mach-common/lock.S‎

Lines changed: 0 additions & 223 deletions
This file was deleted.

0 commit comments

Comments
 (0)