summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-05-21 12:47:26 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-05-22 01:34:25 +0200
commit00baf8576c29c93a470bdfc98a5c121a49c2f34b (patch)
treefcba0f11a1a4683329dced251b3d17d4bd7bcc69 /arch/mips/kernel
parent49f2ec91e14ce9bb20fdac88a38243129f3261c3 (diff)
MIPS: Idle: cleaup SMTC idle hook as per Linux coding style.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r--arch/mips/kernel/idle.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/mips/kernel/idle.c b/arch/mips/kernel/idle.c
index 1e9d9383d49..28abda73126 100644
--- a/arch/mips/kernel/idle.c
+++ b/arch/mips/kernel/idle.c
@@ -218,13 +218,18 @@ void __init check_wait(void)
}
}
-void arch_cpu_idle(void)
+static void smtc_idle_hook(void)
{
#ifdef CONFIG_MIPS_MT_SMTC
- extern void smtc_idle_loop_hook(void);
+ void smtc_idle_loop_hook(void);
smtc_idle_loop_hook();
#endif
+}
+
+void arch_cpu_idle(void)
+{
+ smtc_idle_hook();
if (cpu_wait)
(*cpu_wait)();
else