[PATCH] [ARM] use __preempt_enable_no_resched in cpu_idle()
From: Uwe Kleine-König
Date: Mon Feb 02 2009 - 17:05:48 EST
instead of preempt_enable_no_resched. The only difference is that the
latter wails if preempt_count drops to zero. This however is OK here as
schedule is called afterwards. The same was done for x86 in
932e227146fbb26ea4688c126d0fd3953787f6a4.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
---
Hello,
this patch can be found in my repo at
git://git.pengutronix.de/git/ukl/linux-2.6.git rt/rt-locks
as 7750516b5d0 basing on Steven's rt/rt-locks branch.
Best regards
Uwe
arch/arm/kernel/process.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index d3ea6fa..8fbf03b 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -167,7 +167,7 @@ void cpu_idle(void)
idle();
leds_event(led_idle_end);
tick_nohz_restart_sched_tick();
- preempt_enable_no_resched();
+ __preempt_enable_no_resched();
schedule();
preempt_disable();
}
--
1.5.6.5
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/