aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-05-20 00:40:50 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-20 00:40:50 -0400
commit837ebf0ec78ec6c724b904a3e3e933a1bc72a7b7 (patch)
tree45c69069b79a0c59692248c34f4a0839a998cec7
parent0bfcee9ad369aca590211a4a8fffd28f1ed39a82 (diff)
sparc32: Kill boot_cpu_id4
It is written, but never actually read. Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--arch/sparc/include/asm/setup.h1
-rw-r--r--arch/sparc/kernel/head_32.S5
-rw-r--r--arch/sparc/kernel/setup_32.c1
3 files changed, 1 insertions, 6 deletions
diff --git a/arch/sparc/include/asm/setup.h b/arch/sparc/include/asm/setup.h
index 00497abec996..84a8a49966d8 100644
--- a/arch/sparc/include/asm/setup.h
+++ b/arch/sparc/include/asm/setup.h
@@ -20,7 +20,6 @@ extern char reboot_command[];
20 * Only sun4d + leon may have boot_cpu_id != 0 20 * Only sun4d + leon may have boot_cpu_id != 0
21 */ 21 */
22extern unsigned char boot_cpu_id; 22extern unsigned char boot_cpu_id;
23extern unsigned char boot_cpu_id4;
24 23
25extern unsigned long empty_bad_page; 24extern unsigned long empty_bad_page;
26extern unsigned long empty_bad_page_table; 25extern unsigned long empty_bad_page_table;
diff --git a/arch/sparc/kernel/head_32.S b/arch/sparc/kernel/head_32.S
index 69645cac54bd..a0ec4adc7f71 100644
--- a/arch/sparc/kernel/head_32.S
+++ b/arch/sparc/kernel/head_32.S
@@ -819,10 +819,7 @@ continue_boot:
819 mov %g0, %g3 819 mov %g0, %g3
820 stub %g3, [%g2 + %lo(boot_cpu_id)] 820 stub %g3, [%g2 + %lo(boot_cpu_id)]
821 821
8221: /* boot_cpu_id set. calculate boot_cpu_id4 = boot_cpu_id*4 */ 8221: sll %g3, 2, %g3
823 sll %g3, 2, %g3
824 sethi %hi(boot_cpu_id4), %g2
825 stub %g3, [%g2 + %lo(boot_cpu_id4)]
826 823
827 /* Initialize the uwinmask value for init task just in case. 824 /* Initialize the uwinmask value for init task just in case.
828 * But first make current_set[boot_cpu_id] point to something useful. 825 * But first make current_set[boot_cpu_id] point to something useful.
diff --git a/arch/sparc/kernel/setup_32.c b/arch/sparc/kernel/setup_32.c
index 2f7cfb5f7569..635df5c9e601 100644
--- a/arch/sparc/kernel/setup_32.c
+++ b/arch/sparc/kernel/setup_32.c
@@ -105,7 +105,6 @@ unsigned long cmdline_memory_size __initdata = 0;
105 105
106/* which CPU booted us (0xff = not set) */ 106/* which CPU booted us (0xff = not set) */
107unsigned char boot_cpu_id = 0xff; /* 0xff will make it into DATA section... */ 107unsigned char boot_cpu_id = 0xff; /* 0xff will make it into DATA section... */
108unsigned char boot_cpu_id4; /* boot_cpu_id << 2 */
109 108
110static void 109static void
111prom_console_write(struct console *con, const char *s, unsigned n) 110prom_console_write(struct console *con, const char *s, unsigned n)