diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-21 12:33:18 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-04-10 16:36:31 -0500 |
commit | 258f59d22305dd5b5459bc90c5ec5991c26b610e (patch) | |
tree | a14956861f0ce456b55d9a0e6676564388285419 /init | |
parent | 9e65c5485840e67cc29fd1ced5a8b8ff2cbb0334 (diff) |
sched: Use schedule_preempt_disabled()
Coccinelle based conversion.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/init/main.c b/init/main.c index 217ed23e9487..0e274f9ca6d1 100644 --- a/init/main.c +++ b/init/main.c @@ -378,11 +378,8 @@ static noinline void __init_refok rest_init(void) * at least once to get things moving: */ init_idle_bootup_task(current); - preempt_enable_no_resched(); - schedule(); - + schedule_preempt_disabled(); /* Call into cpu_idle with preempt disabled */ - preempt_disable(); cpu_idle(); } |