Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2645e721 authored by Daniel Hellstrom's avatar Daniel Hellstrom Committed by David S. Miller
Browse files

sparc32,leon: SMP power down implementation

parent 5149bed8
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -128,8 +128,16 @@ void cpu_idle(void)
        set_thread_flag(TIF_POLLING_NRFLAG);
	/* endless idle loop with no priority at all */
	while(1) {
#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();