diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-05-21 06:47:26 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-05-21 19:34:25 -0400 |
commit | 00baf8576c29c93a470bdfc98a5c121a49c2f34b (patch) | |
tree | fcba0f11a1a4683329dced251b3d17d4bd7bcc69 | |
parent | 49f2ec91e14ce9bb20fdac88a38243129f3261c3 (diff) |
MIPS: Idle: cleaup SMTC idle hook as per Linux coding style.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/kernel/idle.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/mips/kernel/idle.c b/arch/mips/kernel/idle.c index 1e9d9383d49f..28abda73126a 100644 --- a/arch/mips/kernel/idle.c +++ b/arch/mips/kernel/idle.c | |||
@@ -218,13 +218,18 @@ void __init check_wait(void) | |||
218 | } | 218 | } |
219 | } | 219 | } |
220 | 220 | ||
221 | void arch_cpu_idle(void) | 221 | static void smtc_idle_hook(void) |
222 | { | 222 | { |
223 | #ifdef CONFIG_MIPS_MT_SMTC | 223 | #ifdef CONFIG_MIPS_MT_SMTC |
224 | extern void smtc_idle_loop_hook(void); | 224 | void smtc_idle_loop_hook(void); |
225 | 225 | ||
226 | smtc_idle_loop_hook(); | 226 | smtc_idle_loop_hook(); |
227 | #endif | 227 | #endif |
228 | } | ||
229 | |||
230 | void arch_cpu_idle(void) | ||
231 | { | ||
232 | smtc_idle_hook(); | ||
228 | if (cpu_wait) | 233 | if (cpu_wait) |
229 | (*cpu_wait)(); | 234 | (*cpu_wait)(); |
230 | else | 235 | else |