Skip to content

Commit

Permalink
sh: Make check_pgt_cache() more aggressive while idling.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Oct 16, 2009
1 parent f533c3d commit 0e6d498
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/sh/kernel/idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -104,7 +107,6 @@ void cpu_idle(void)
preempt_enable_no_resched();
schedule();
preempt_disable();
check_pgt_cache();
}
}

Expand Down

0 comments on commit 0e6d498

Please sign in to comment.