diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-21 12:33:18 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-03-14 10:49:45 -0500 |
commit | 8695674a54fc750583b458f40a498bb49c5e84e3 (patch) | |
tree | 05a5b80e107abf791b0e0c7e5ddca2860e875220 /init | |
parent | 2984cc75a3ea7b0c971d35c035fcc73961c2f0d3 (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(); } |