MIPS: Idle: cleaup SMTC idle hook as per Linux coding style.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
diff --git a/arch/mips/kernel/idle.c b/arch/mips/kernel/idle.c
index 1e9d938..28abda7 100644
--- a/arch/mips/kernel/idle.c
+++ b/arch/mips/kernel/idle.c
@@ -218,13 +218,18 @@
}
}
-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