Merge branch 'linus' into sched/core
Merge reason: pick up the latest fixes. Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
19
init/main.c
19
init/main.c
@@ -209,8 +209,19 @@ early_param("quiet", quiet_kernel);
|
||||
|
||||
static int __init loglevel(char *str)
|
||||
{
|
||||
get_option(&str, &console_loglevel);
|
||||
return 0;
|
||||
int newlevel;
|
||||
|
||||
/*
|
||||
* Only update loglevel value when a correct setting was passed,
|
||||
* to prevent blind crashes (when loglevel being set to 0) that
|
||||
* are quite hard to debug
|
||||
*/
|
||||
if (get_option(&str, &newlevel)) {
|
||||
console_loglevel = newlevel;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
early_param("loglevel", loglevel);
|
||||
@@ -370,9 +381,6 @@ static noinline void __init_refok rest_init(void)
|
||||
preempt_enable_no_resched();
|
||||
schedule();
|
||||
|
||||
/* At this point, we can enable user mode helper functionality */
|
||||
usermodehelper_enable();
|
||||
|
||||
/* Call into cpu_idle with preempt disabled */
|
||||
preempt_disable();
|
||||
cpu_idle();
|
||||
@@ -722,6 +730,7 @@ static void __init do_basic_setup(void)
|
||||
driver_init();
|
||||
init_irq_proc();
|
||||
do_ctors();
|
||||
usermodehelper_enable();
|
||||
do_initcalls();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user