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: Paul Mundt <lethal@linux-sh.org>
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();
preempt_enable_no_resched();
schedule();
preempt_disable();
- check_pgt_cache();
}
}