From ba6d1d8fa324f7ec0372abfd7d5114d7ec4ee1ea Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Mon, 21 Mar 2011 12:33:18 +0100 Subject: sched: Use schedule_preempt_disabled() Coccinelle based conversion. Signed-off-by: Thomas Gleixner --- init/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'init') 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(); } -- cgit v1.2.3