mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 05:32:00 +00:00
[MIPS] SMTC: Cleanup idle hook invocation.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
7418cb89af
commit
447deafba4
@ -41,10 +41,6 @@
|
||||
#include <asm/isadep.h>
|
||||
#include <asm/inst.h>
|
||||
#include <asm/stacktrace.h>
|
||||
#ifdef CONFIG_MIPS_MT_SMTC
|
||||
#include <asm/mipsmtregs.h>
|
||||
extern void smtc_idle_loop_hook(void);
|
||||
#endif /* CONFIG_MIPS_MT_SMTC */
|
||||
|
||||
/*
|
||||
* The idle thread. There's no useful work to be done, so just try to conserve
|
||||
@ -57,6 +53,8 @@ ATTRIB_NORET void cpu_idle(void)
|
||||
while (1) {
|
||||
while (!need_resched()) {
|
||||
#ifdef CONFIG_MIPS_MT_SMTC
|
||||
extern void smtc_idle_loop_hook(void);
|
||||
|
||||
smtc_idle_loop_hook();
|
||||
#endif /* CONFIG_MIPS_MT_SMTC */
|
||||
if (cpu_wait)
|
||||
|
Loading…
Reference in New Issue
Block a user