main.c (458ce2910aa83d8a2cafb489d727f7da839e73c6) | main.c (bd2f55361f18347e890d52ff9cfd8895455ec11b) |
---|---|
1/* 2 * linux/init/main.c 3 * 4 * Copyright (C) 1991, 1992 Linus Torvalds 5 * 6 * GK 2/5/95 - Changed to support mounting root fs via NFS 7 * Added initrd & change_root: Werner Almesberger & Hans Lermen, Feb '96 8 * Moan early if gcc is old, avoiding bogus kernels - Paul Gortmaker, May '96 --- 360 unchanged lines hidden (view full) --- 369 rcu_read_unlock(); 370 complete(&kthreadd_done); 371 372 /* 373 * The boot idle thread must execute schedule() 374 * at least once to get things moving: 375 */ 376 init_idle_bootup_task(current); | 1/* 2 * linux/init/main.c 3 * 4 * Copyright (C) 1991, 1992 Linus Torvalds 5 * 6 * GK 2/5/95 - Changed to support mounting root fs via NFS 7 * Added initrd & change_root: Werner Almesberger & Hans Lermen, Feb '96 8 * Moan early if gcc is old, avoiding bogus kernels - Paul Gortmaker, May '96 --- 360 unchanged lines hidden (view full) --- 369 rcu_read_unlock(); 370 complete(&kthreadd_done); 371 372 /* 373 * The boot idle thread must execute schedule() 374 * at least once to get things moving: 375 */ 376 init_idle_bootup_task(current); |
377 preempt_enable_no_resched(); 378 schedule(); 379 | 377 schedule_preempt_disabled(); |
380 /* Call into cpu_idle with preempt disabled */ | 378 /* Call into cpu_idle with preempt disabled */ |
381 preempt_disable(); | |
382 cpu_idle(); 383} 384 385/* Check for early params. */ 386static int __init do_early_param(char *param, char *val) 387{ 388 const struct obs_kernel_param *p; 389 --- 454 unchanged lines hidden --- | 379 cpu_idle(); 380} 381 382/* Check for early params. */ 383static int __init do_early_param(char *param, char *val) 384{ 385 const struct obs_kernel_param *p; 386 --- 454 unchanged lines hidden --- |