diff options
author | Dmitri Vorobiev <dmitri.vorobiev@movial.com> | 2009-11-23 06:53:37 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-12-16 20:57:27 -0500 |
commit | 599a89459f316499446fdb5c817a0a4835681bae (patch) | |
tree | 342f276b475b5c1fcdada4573ea704a009a9dc47 /arch/mips/sgi-ip22 | |
parent | 7326c4e567b50e689d13c04d58aeffa515277ebb (diff) |
MIPS: Move several variables from .bss to .init.data
Several static uninitialized variables are used in the scope of __init
functions but are themselves not marked as __initdata. This patch is to put
those variables to where they belong and to reduce the memory footprint a
little bit.
Also, a couple of lines with spaces instead of tabs were fixed.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/698/
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/sgi-ip22')
-rw-r--r-- | arch/mips/sgi-ip22/ip22-eisa.c | 4 | ||||
-rw-r--r-- | arch/mips/sgi-ip22/ip22-setup.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/sgi-ip22/ip22-eisa.c b/arch/mips/sgi-ip22/ip22-eisa.c index 1617241d2737..da44ccb20829 100644 --- a/arch/mips/sgi-ip22/ip22-eisa.c +++ b/arch/mips/sgi-ip22/ip22-eisa.c | |||
@@ -50,9 +50,9 @@ | |||
50 | 50 | ||
51 | static char __init *decode_eisa_sig(unsigned long addr) | 51 | static char __init *decode_eisa_sig(unsigned long addr) |
52 | { | 52 | { |
53 | static char sig_str[EISA_SIG_LEN]; | 53 | static char sig_str[EISA_SIG_LEN] __initdata; |
54 | u8 sig[4]; | 54 | u8 sig[4]; |
55 | u16 rev; | 55 | u16 rev; |
56 | int i; | 56 | int i; |
57 | 57 | ||
58 | for (i = 0; i < 4; i++) { | 58 | for (i = 0; i < 4; i++) { |
diff --git a/arch/mips/sgi-ip22/ip22-setup.c b/arch/mips/sgi-ip22/ip22-setup.c index b9a931358e23..5deeb68b6c9c 100644 --- a/arch/mips/sgi-ip22/ip22-setup.c +++ b/arch/mips/sgi-ip22/ip22-setup.c | |||
@@ -67,7 +67,7 @@ void __init plat_mem_setup(void) | |||
67 | cserial = ArcGetEnvironmentVariable("ConsoleOut"); | 67 | cserial = ArcGetEnvironmentVariable("ConsoleOut"); |
68 | 68 | ||
69 | if ((ctype && *ctype == 'd') || (cserial && *cserial == 's')) { | 69 | if ((ctype && *ctype == 'd') || (cserial && *cserial == 's')) { |
70 | static char options[8]; | 70 | static char options[8] __initdata; |
71 | char *baud = ArcGetEnvironmentVariable("dbaud"); | 71 | char *baud = ArcGetEnvironmentVariable("dbaud"); |
72 | if (baud) | 72 | if (baud) |
73 | strcpy(options, baud); | 73 | strcpy(options, baud); |