diff options
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/init/main.c b/init/main.c index 2a78932f6c07..c59859b85db0 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -238,22 +238,18 @@ EXPORT_SYMBOL(loops_per_jiffy); | |||
238 | 238 | ||
239 | static int __init debug_kernel(char *str) | 239 | static int __init debug_kernel(char *str) |
240 | { | 240 | { |
241 | if (*str) | ||
242 | return 0; | ||
243 | console_loglevel = 10; | 241 | console_loglevel = 10; |
244 | return 1; | 242 | return 0; |
245 | } | 243 | } |
246 | 244 | ||
247 | static int __init quiet_kernel(char *str) | 245 | static int __init quiet_kernel(char *str) |
248 | { | 246 | { |
249 | if (*str) | ||
250 | return 0; | ||
251 | console_loglevel = 4; | 247 | console_loglevel = 4; |
252 | return 1; | 248 | return 0; |
253 | } | 249 | } |
254 | 250 | ||
255 | __setup("debug", debug_kernel); | 251 | early_param("debug", debug_kernel); |
256 | __setup("quiet", quiet_kernel); | 252 | early_param("quiet", quiet_kernel); |
257 | 253 | ||
258 | static int __init loglevel(char *str) | 254 | static int __init loglevel(char *str) |
259 | { | 255 | { |
@@ -261,7 +257,7 @@ static int __init loglevel(char *str) | |||
261 | return 1; | 257 | return 1; |
262 | } | 258 | } |
263 | 259 | ||
264 | __setup("loglevel=", loglevel); | 260 | early_param("loglevel", loglevel); |
265 | 261 | ||
266 | /* | 262 | /* |
267 | * Unknown boot options get handed to init, unless they look like | 263 | * Unknown boot options get handed to init, unless they look like |
@@ -833,7 +829,6 @@ static int __init kernel_init(void * unused) | |||
833 | */ | 829 | */ |
834 | init_pid_ns.child_reaper = current; | 830 | init_pid_ns.child_reaper = current; |
835 | 831 | ||
836 | __set_special_pids(1, 1); | ||
837 | cad_pid = task_pid(current); | 832 | cad_pid = task_pid(current); |
838 | 833 | ||
839 | smp_prepare_cpus(setup_max_cpus); | 834 | smp_prepare_cpus(setup_max_cpus); |