aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-03-21 12:33:18 +0100
committerSteven Rostedt <rostedt@goodmis.org>2012-04-10 14:33:53 -0400
commit8efcb7002522ec05c9de1be5496acb598db4d564 (patch)
treea14956861f0ce456b55d9a0e6676564388285419 /init
parentdd9af0bfba68791051cbf4612ddfd0ed9937d581 (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.c5
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();
}