diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2009-12-21 10:48:57 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-01-12 12:19:34 -0500 |
commit | 98bea6fc87390b6a12f595ad06fc686712435f94 (patch) | |
tree | 0cd549e85dc4c0d55b88ecb0dc5b38b475e10e66 /arch | |
parent | 7e326d687d182e45447c24daccaa9b60bae130d5 (diff) |
MIPS: TXx9: Cleanup builtin-cmdline processing
Since commit 898d357b5262f9e26bc2418e01f8676e80d9867e (lmo) /
6acc7d485c24c00e111c61b2e6dff9180faebcae (kernel.org) ("Fix and enhance
built-in kernel command line") arcs_cmdline[] does not contain built-in
command line. The commit introduce CONFIG_CMDLINE_BOOL and
CONFIG_CMDLINE_OVERRIDE to control built-in command line, and now we can
use them instead of platform-specific built-in command line processing.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Patchwork: http://patchwork.linux-mips.org/patch/802/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/txx9/generic/setup.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index 06e801c7e258..e27809b6d04f 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c | |||
@@ -160,7 +160,6 @@ static void __init prom_init_cmdline(void) | |||
160 | int argc; | 160 | int argc; |
161 | int *argv32; | 161 | int *argv32; |
162 | int i; /* Always ignore the "-c" at argv[0] */ | 162 | int i; /* Always ignore the "-c" at argv[0] */ |
163 | static char builtin[COMMAND_LINE_SIZE] __initdata; | ||
164 | 163 | ||
165 | if (fw_arg0 >= CKSEG0 || fw_arg1 < CKSEG0) { | 164 | if (fw_arg0 >= CKSEG0 || fw_arg1 < CKSEG0) { |
166 | /* | 165 | /* |
@@ -174,20 +173,6 @@ static void __init prom_init_cmdline(void) | |||
174 | argv32 = (int *)fw_arg1; | 173 | argv32 = (int *)fw_arg1; |
175 | } | 174 | } |
176 | 175 | ||
177 | /* ignore all built-in args if any f/w args given */ | ||
178 | /* | ||
179 | * But if built-in strings was started with '+', append them | ||
180 | * to command line args. If built-in was started with '-', | ||
181 | * ignore all f/w args. | ||
182 | */ | ||
183 | builtin[0] = '\0'; | ||
184 | if (arcs_cmdline[0] == '+') | ||
185 | strcpy(builtin, arcs_cmdline + 1); | ||
186 | else if (arcs_cmdline[0] == '-') { | ||
187 | strcpy(builtin, arcs_cmdline + 1); | ||
188 | argc = 0; | ||
189 | } else if (argc <= 1) | ||
190 | strcpy(builtin, arcs_cmdline); | ||
191 | arcs_cmdline[0] = '\0'; | 176 | arcs_cmdline[0] = '\0'; |
192 | 177 | ||
193 | for (i = 1; i < argc; i++) { | 178 | for (i = 1; i < argc; i++) { |
@@ -201,12 +186,6 @@ static void __init prom_init_cmdline(void) | |||
201 | } else | 186 | } else |
202 | strcat(arcs_cmdline, str); | 187 | strcat(arcs_cmdline, str); |
203 | } | 188 | } |
204 | /* append saved builtin args */ | ||
205 | if (builtin[0]) { | ||
206 | if (arcs_cmdline[0]) | ||
207 | strcat(arcs_cmdline, " "); | ||
208 | strcat(arcs_cmdline, builtin); | ||
209 | } | ||
210 | } | 189 | } |
211 | 190 | ||
212 | static int txx9_ic_disable __initdata; | 191 | static int txx9_ic_disable __initdata; |