Skip to content

Commit 668f993

Browse files
alonblLinus Torvalds
authored andcommitted
[PATCH] Dynamic kernel command-line: parisc
1. Rename saved_command_line into boot_command_line. 2. Set command_line as __initdata. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Cc: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 43cd346 commit 668f993

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎arch/parisc/kernel/setup.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#include <asm/io.h>
4646
#include <asm/setup.h>
4747

48-
char command_line[COMMAND_LINE_SIZE] __read_mostly;
48+
char __initdata command_line[COMMAND_LINE_SIZE] __read_mostly;
4949

5050
/* Intended for ccio/sba/cpu statistics under /proc/bus/{runway|gsc} */
5151
struct proc_dir_entry * proc_runway_root __read_mostly = NULL;
@@ -71,9 +71,9 @@ void __init setup_cmdline(char **cmdline_p)
7171
/* boot_args[0] is free-mem start, boot_args[1] is ptr to command line */
7272
if (boot_args[0] < 64) {
7373
/* called from hpux boot loader */
74-
saved_command_line[0] = '\0';
74+
boot_command_line[0] = '\0';
7575
} else {
76-
strcpy(saved_command_line, (char *)__va(boot_args[1]));
76+
strcpy(boot_command_line, (char *)__va(boot_args[1]));
7777

7878
#ifdef CONFIG_BLK_DEV_INITRD
7979
if (boot_args[2] != 0) /* did palo pass us a ramdisk? */
@@ -84,7 +84,7 @@ void __init setup_cmdline(char **cmdline_p)
8484
#endif
8585
}
8686

87-
strcpy(command_line, saved_command_line);
87+
strcpy(command_line, boot_command_line);
8888
*cmdline_p = command_line;
8989
}
9090

‎arch/parisc/mm/init.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ static void __init mem_limit_func(void)
7777
{
7878
char *cp, *end;
7979
unsigned long limit;
80-
extern char saved_command_line[];
80+
extern char __initdata boot_command_line[];
8181

8282
/* We need this before __setup() functions are called */
8383

8484
limit = MAX_MEM;
85-
for (cp = saved_command_line; *cp; ) {
85+
for (cp = boot_command_line; *cp; ) {
8686
if (memcmp(cp, "mem=", 4) == 0) {
8787
cp += 4;
8888
limit = memparse(cp, &end);

0 commit comments

Comments
 (0)