mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-12 16:11:04 +00:00
sparc32,leon: SMP power down implementation
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5149bed891
commit
2645e7219e
@ -128,8 +128,16 @@ void cpu_idle(void)
|
||||
set_thread_flag(TIF_POLLING_NRFLAG);
|
||||
/* endless idle loop with no priority at all */
|
||||
while(1) {
|
||||
while (!need_resched())
|
||||
cpu_relax();
|
||||
#ifdef CONFIG_SPARC_LEON
|
||||
if (pm_idle) {
|
||||
while (!need_resched())
|
||||
(*pm_idle)();
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
while (!need_resched())
|
||||
cpu_relax();
|
||||
}
|
||||
preempt_enable_no_resched();
|
||||
schedule();
|
||||
preempt_disable();
|
||||
|
Loading…
x
Reference in New Issue
Block a user