diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-10-16 17:27:58 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-16 17:27:58 +0900 |
commit | 0e6d4986e7940125a04ba8c3aa558f3b248cb9b4 (patch) | |
tree | b54572e3fd33d50177d3c3699eda07283678dbb2 /arch/sh/kernel/idle.c | |
parent | f533c3d340536198a4889a42a68d6c0d79a504e7 (diff) | |
download | op-kernel-dev-0e6d4986e7940125a04ba8c3aa558f3b248cb9b4.zip op-kernel-dev-0e6d4986e7940125a04ba8c3aa558f3b248cb9b4.tar.gz |
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: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/idle.c')
-rw-r--r-- | arch/sh/kernel/idle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sh/kernel/idle.c b/arch/sh/kernel/idle.c index 8e61241..3243eb2 100644 --- a/arch/sh/kernel/idle.c +++ b/arch/sh/kernel/idle.c @@ -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(); } } |