diff options
author | Jens Axboe <axboe@kernel.dk> | 2012-05-01 08:29:55 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-05-01 08:29:55 -0400 |
commit | 0b7877d4eea3f93e3dd941999522bbd8c538cb53 (patch) | |
tree | ade6d4e411b9b9b569c802e3b2179826162c934c /init | |
parent | bd1a68b59c8e3bce45fb76632c64e1e063c3962d (diff) | |
parent | 69964ea4c7b68c9399f7977aa5b9aa6539a6a98a (diff) |
Merge tag 'v3.4-rc5' into for-3.5/core
The core branch is behind driver commits that we want to build
on for 3.5, hence I'm pulling in a later -rc.
Linux 3.4-rc5
Conflicts:
Documentation/feature-removal-schedule.txt
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 4 | ||||
-rw-r--r-- | init/main.c | 25 |
2 files changed, 15 insertions, 14 deletions
diff --git a/init/Kconfig b/init/Kconfig index 2acd917ebf2d..038e2592664e 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -1414,8 +1414,8 @@ endif # MODULES | |||
1414 | config INIT_ALL_POSSIBLE | 1414 | config INIT_ALL_POSSIBLE |
1415 | bool | 1415 | bool |
1416 | help | 1416 | help |
1417 | Back when each arch used to define their own cpu_online_map and | 1417 | Back when each arch used to define their own cpu_online_mask and |
1418 | cpu_possible_map, some of them chose to initialize cpu_possible_map | 1418 | cpu_possible_mask, some of them chose to initialize cpu_possible_mask |
1419 | with all 1s, and others with all 0s. When they were centralised, | 1419 | with all 1s, and others with all 0s. When they were centralised, |
1420 | it was better to provide this option than to break all the archs | 1420 | it was better to provide this option than to break all the archs |
1421 | and have several arch maintainers pursuing me down dark alleys. | 1421 | and have several arch maintainers pursuing me down dark alleys. |
diff --git a/init/main.c b/init/main.c index 9d454f09f3b1..44b2433334c7 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -225,13 +225,9 @@ static int __init loglevel(char *str) | |||
225 | 225 | ||
226 | early_param("loglevel", loglevel); | 226 | early_param("loglevel", loglevel); |
227 | 227 | ||
228 | /* | 228 | /* Change NUL term back to "=", to make "param" the whole string. */ |
229 | * Unknown boot options get handed to init, unless they look like | 229 | static int __init repair_env_string(char *param, char *val) |
230 | * unused parameters (modprobe will find them in /proc/cmdline). | ||
231 | */ | ||
232 | static int __init unknown_bootoption(char *param, char *val) | ||
233 | { | 230 | { |
234 | /* Change NUL term back to "=", to make "param" the whole string. */ | ||
235 | if (val) { | 231 | if (val) { |
236 | /* param=val or param="val"? */ | 232 | /* param=val or param="val"? */ |
237 | if (val == param+strlen(param)+1) | 233 | if (val == param+strlen(param)+1) |
@@ -243,6 +239,16 @@ static int __init unknown_bootoption(char *param, char *val) | |||
243 | } else | 239 | } else |
244 | BUG(); | 240 | BUG(); |
245 | } | 241 | } |
242 | return 0; | ||
243 | } | ||
244 | |||
245 | /* | ||
246 | * Unknown boot options get handed to init, unless they look like | ||
247 | * unused parameters (modprobe will find them in /proc/cmdline). | ||
248 | */ | ||
249 | static int __init unknown_bootoption(char *param, char *val) | ||
250 | { | ||
251 | repair_env_string(param, val); | ||
246 | 252 | ||
247 | /* Handle obsolete-style parameters */ | 253 | /* Handle obsolete-style parameters */ |
248 | if (obsolete_checksetup(param)) | 254 | if (obsolete_checksetup(param)) |
@@ -732,11 +738,6 @@ static char *initcall_level_names[] __initdata = { | |||
732 | "late parameters", | 738 | "late parameters", |
733 | }; | 739 | }; |
734 | 740 | ||
735 | static int __init ignore_unknown_bootoption(char *param, char *val) | ||
736 | { | ||
737 | return 0; | ||
738 | } | ||
739 | |||
740 | static void __init do_initcall_level(int level) | 741 | static void __init do_initcall_level(int level) |
741 | { | 742 | { |
742 | extern const struct kernel_param __start___param[], __stop___param[]; | 743 | extern const struct kernel_param __start___param[], __stop___param[]; |
@@ -747,7 +748,7 @@ static void __init do_initcall_level(int level) | |||
747 | static_command_line, __start___param, | 748 | static_command_line, __start___param, |
748 | __stop___param - __start___param, | 749 | __stop___param - __start___param, |
749 | level, level, | 750 | level, level, |
750 | ignore_unknown_bootoption); | 751 | repair_env_string); |
751 | 752 | ||
752 | for (fn = initcall_levels[level]; fn < initcall_levels[level+1]; fn++) | 753 | for (fn = initcall_levels[level]; fn < initcall_levels[level+1]; fn++) |
753 | do_one_initcall(*fn); | 754 | do_one_initcall(*fn); |