summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-12-10 20:30:57 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-12-15 11:46:50 +0100
commitc95f81b36a05409865c586c29e81f3dd81e8d152 (patch)
treeee094ef7672b12772e2187e17bdd6861916247ef /arch
parentccc25627e587302325c32193016cc978e147f2c3 (diff)
downloadbarebox-c95f81b36a05409865c586c29e81f3dd81e8d152.tar.gz
barebox-c95f81b36a05409865c586c29e81f3dd81e8d152.tar.xz
ARM: remove unused icache command
The icache command is unused. Instead of adding it to compilation again, remove it as the cpuinfo command provides the same information. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/cpu.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/arch/arm/cpu/cpu.c b/arch/arm/cpu/cpu.c
index d4a3b14819..14bb6d1c1b 100644
--- a/arch/arm/cpu/cpu.c
+++ b/arch/arm/cpu/cpu.c
@@ -89,37 +89,3 @@ void arch_shutdown(void)
);
#endif
}
-
-/**
- * @page arm_boot_preparation Linux Preparation on ARM
- *
- * For ARM we never enable data cache so we do not need to disable it again.
- * Linux can be called with instruction cache enabled. As this is the
- * default setting we are running in barebox, there's no special preparation
- * required.
- */
-#ifdef CONFIG_COMMAND
-static int do_icache(struct command *cmdtp, int argc, char *argv[])
-{
- if (argc == 1) {
- printf("icache is %sabled\n", icache_status() ? "en" : "dis");
- return 0;
- }
-
- if (simple_strtoul(argv[1], NULL, 0) > 0)
- icache_enable();
- else
- icache_disable();
-
- return 0;
-}
-
-static const __maybe_unused char cmd_icache_help[] =
-"Usage: icache [0|1]\n";
-
-BAREBOX_CMD_START(icache)
- .cmd = do_icache,
- .usage = "show/change icache status",
- BAREBOX_CMD_HELP(cmd_icache_help)
-BAREBOX_CMD_END
-#endif