aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-03-21 12:33:18 +0100
committerSteven Rostedt <rostedt@rostedt.homelinux.com>2014-01-18 17:12:16 -0500
commitb25219b8408cf038e31f731f608c1bfc0d22a14f (patch)
tree768cc1306177aa2dfff8c63a44897509b91e0c08 /init
parent42d135393c23af47da435fbf012ef0992a5f430b (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 7474450c4503..258f084e1ea1 100644
--- a/init/main.c
+++ b/init/main.c
@@ -379,11 +379,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();
}