aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-09-17 00:39:36 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2014-10-02 03:33:55 -0400
commit3e47d1474c2b4099f0fadd12a6553fdb2e8feaae (patch)
tree8d7dee7104d3198cc7ca3d2789a0e0b8846f83ca /arch
parentc7d1f6afe062d2dc4bb8109856519570f2fe3c13 (diff)
powerpc: Remove powerpc specific cmd_line
There is no need for yet another copy of the command line, just use boot_command_line like everyone else. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/include/asm/machdep.h2
-rw-r--r--arch/powerpc/kernel/prom.c4
-rw-r--r--arch/powerpc/kernel/setup-common.c2
-rw-r--r--arch/powerpc/kernel/setup_32.c2
-rw-r--r--arch/powerpc/kernel/setup_64.c2
-rw-r--r--arch/powerpc/mm/init_32.c4
-rw-r--r--arch/powerpc/platforms/chrp/setup.c2
-rw-r--r--arch/powerpc/platforms/powermac/setup.c8
8 files changed, 10 insertions, 16 deletions
diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h
index b125ceab149c..902ab203aeb2 100644
--- a/arch/powerpc/include/asm/machdep.h
+++ b/arch/powerpc/include/asm/machdep.h
@@ -330,8 +330,6 @@ extern struct machdep_calls *machine_id;
330 330
331extern void probe_machine(void); 331extern void probe_machine(void);
332 332
333extern char cmd_line[COMMAND_LINE_SIZE];
334
335#ifdef CONFIG_PPC_PMAC 333#ifdef CONFIG_PPC_PMAC
336/* 334/*
337 * Power macintoshes have either a CUDA, PMU or SMU controlling 335 * Power macintoshes have either a CUDA, PMU or SMU controlling
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 59576255d22b..099f27e6d1b0 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -668,14 +668,12 @@ void __init early_init_devtree(void *params)
668 * device-tree, including the platform type, initrd location and 668 * device-tree, including the platform type, initrd location and
669 * size, TCE reserve, and more ... 669 * size, TCE reserve, and more ...
670 */ 670 */
671 of_scan_flat_dt(early_init_dt_scan_chosen_ppc, cmd_line); 671 of_scan_flat_dt(early_init_dt_scan_chosen_ppc, boot_command_line);
672 672
673 /* Scan memory nodes and rebuild MEMBLOCKs */ 673 /* Scan memory nodes and rebuild MEMBLOCKs */
674 of_scan_flat_dt(early_init_dt_scan_root, NULL); 674 of_scan_flat_dt(early_init_dt_scan_root, NULL);
675 of_scan_flat_dt(early_init_dt_scan_memory_ppc, NULL); 675 of_scan_flat_dt(early_init_dt_scan_memory_ppc, NULL);
676 676
677 /* Save command line for /proc/cmdline and then parse parameters */
678 strlcpy(boot_command_line, cmd_line, COMMAND_LINE_SIZE);
679 parse_early_param(); 677 parse_early_param();
680 678
681 /* make sure we've parsed cmdline for mem= before this */ 679 /* make sure we've parsed cmdline for mem= before this */
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
index c933acd4e2bd..0df37f5e2d54 100644
--- a/arch/powerpc/kernel/setup-common.c
+++ b/arch/powerpc/kernel/setup-common.c
@@ -81,8 +81,6 @@ EXPORT_SYMBOL_GPL(boot_cpuid);
81 81
82unsigned long klimit = (unsigned long) _end; 82unsigned long klimit = (unsigned long) _end;
83 83
84char cmd_line[COMMAND_LINE_SIZE];
85
86/* 84/*
87 * This still seems to be needed... -- paulus 85 * This still seems to be needed... -- paulus
88 */ 86 */
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c
index ea4fda60e57b..07831ed0d9ef 100644
--- a/arch/powerpc/kernel/setup_32.c
+++ b/arch/powerpc/kernel/setup_32.c
@@ -268,7 +268,7 @@ static void __init exc_lvl_early_init(void)
268/* Warning, IO base is not yet inited */ 268/* Warning, IO base is not yet inited */
269void __init setup_arch(char **cmdline_p) 269void __init setup_arch(char **cmdline_p)
270{ 270{
271 *cmdline_p = cmd_line; 271 *cmdline_p = boot_command_line;
272 272
273 /* so udelay does something sensible, assume <= 1000 bogomips */ 273 /* so udelay does something sensible, assume <= 1000 bogomips */
274 loops_per_jiffy = 500000000 / HZ; 274 loops_per_jiffy = 500000000 / HZ;
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 2ef9893a06bd..cd07d79ad21c 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -667,7 +667,7 @@ void __init setup_arch(char **cmdline_p)
667{ 667{
668 ppc64_boot_msg(0x12, "Setup Arch"); 668 ppc64_boot_msg(0x12, "Setup Arch");
669 669
670 *cmdline_p = cmd_line; 670 *cmdline_p = boot_command_line;
671 671
672 /* 672 /*
673 * Set cache line size based on type of cpu as a default. 673 * Set cache line size based on type of cpu as a default.
diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c
index cff59f1bec23..cad68ff8eca5 100644
--- a/arch/powerpc/mm/init_32.c
+++ b/arch/powerpc/mm/init_32.c
@@ -106,11 +106,11 @@ unsigned long __max_low_memory = MAX_LOW_MEM;
106void MMU_setup(void) 106void MMU_setup(void)
107{ 107{
108 /* Check for nobats option (used in mapin_ram). */ 108 /* Check for nobats option (used in mapin_ram). */
109 if (strstr(cmd_line, "nobats")) { 109 if (strstr(boot_command_line, "nobats")) {
110 __map_without_bats = 1; 110 __map_without_bats = 1;
111 } 111 }
112 112
113 if (strstr(cmd_line, "noltlbs")) { 113 if (strstr(boot_command_line, "noltlbs")) {
114 __map_without_ltlbs = 1; 114 __map_without_ltlbs = 1;
115 } 115 }
116#ifdef CONFIG_DEBUG_PAGEALLOC 116#ifdef CONFIG_DEBUG_PAGEALLOC
diff --git a/arch/powerpc/platforms/chrp/setup.c b/arch/powerpc/platforms/chrp/setup.c
index 7044fd36197b..5b77b1919fd2 100644
--- a/arch/powerpc/platforms/chrp/setup.c
+++ b/arch/powerpc/platforms/chrp/setup.c
@@ -258,7 +258,7 @@ static void chrp_init_early(void)
258 struct device_node *node; 258 struct device_node *node;
259 const char *property; 259 const char *property;
260 260
261 if (strstr(cmd_line, "console=")) 261 if (strstr(boot_command_line, "console="))
262 return; 262 return;
263 /* find the boot console from /chosen/stdout */ 263 /* find the boot console from /chosen/stdout */
264 if (!of_chosen) 264 if (!of_chosen)
diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c
index 141f8899a633..b127a29ac526 100644
--- a/arch/powerpc/platforms/powermac/setup.c
+++ b/arch/powerpc/platforms/powermac/setup.c
@@ -336,7 +336,7 @@ static void __init pmac_setup_arch(void)
336#endif 336#endif
337 337
338#ifdef CONFIG_ADB 338#ifdef CONFIG_ADB
339 if (strstr(cmd_line, "adb_sync")) { 339 if (strstr(boot_command_line, "adb_sync")) {
340 extern int __adb_probe_sync; 340 extern int __adb_probe_sync;
341 __adb_probe_sync = 1; 341 __adb_probe_sync = 1;
342 } 342 }
@@ -460,7 +460,7 @@ pmac_halt(void)
460static void __init pmac_init_early(void) 460static void __init pmac_init_early(void)
461{ 461{
462 /* Enable early btext debug if requested */ 462 /* Enable early btext debug if requested */
463 if (strstr(cmd_line, "btextdbg")) { 463 if (strstr(boot_command_line, "btextdbg")) {
464 udbg_adb_init_early(); 464 udbg_adb_init_early();
465 register_early_udbg_console(); 465 register_early_udbg_console();
466 } 466 }
@@ -469,8 +469,8 @@ static void __init pmac_init_early(void)
469 pmac_feature_init(); 469 pmac_feature_init();
470 470
471 /* Initialize debug stuff */ 471 /* Initialize debug stuff */
472 udbg_scc_init(!!strstr(cmd_line, "sccdbg")); 472 udbg_scc_init(!!strstr(boot_command_line, "sccdbg"));
473 udbg_adb_init(!!strstr(cmd_line, "btextdbg")); 473 udbg_adb_init(!!strstr(boot_command_line, "btextdbg"));
474 474
475#ifdef CONFIG_PPC64 475#ifdef CONFIG_PPC64
476 iommu_init_early_dart(); 476 iommu_init_early_dart();