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

Commit 0e6d4986 authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Make check_pgt_cache() more aggressive while idling.



This follows the x86 change and moves check_pgt_cache() up under the
!need_resched() tight loop, rather than simply calling in to it when
exiting idle.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent f533c3d3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -88,6 +88,9 @@ void cpu_idle(void)
		tick_nohz_stop_sched_tick(1);

		while (!need_resched() && cpu_online(cpu)) {
			check_pgt_cache();
			rmb();

			local_irq_disable();
			/* Don't trace irqs off for idle */
			stop_critical_timings();
@@ -104,7 +107,6 @@ void cpu_idle(void)
		preempt_enable_no_resched();
		schedule();
		preempt_disable();
		check_pgt_cache();
	}
}