diff options
author | David S. Miller <davem@davemloft.net> | 2012-05-19 21:40:50 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-19 21:40:50 -0700 |
commit | 837ebf0ec78ec6c724b904a3e3e933a1bc72a7b7 (patch) | |
tree | 45c69069b79a0c59692248c34f4a0839a998cec7 /arch/sparc/kernel | |
parent | 0bfcee9ad369aca590211a4a8fffd28f1ed39a82 (diff) |
sparc32: Kill boot_cpu_id4
It is written, but never actually read.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r-- | arch/sparc/kernel/head_32.S | 5 | ||||
-rw-r--r-- | arch/sparc/kernel/setup_32.c | 1 |
2 files changed, 1 insertions, 5 deletions
diff --git a/arch/sparc/kernel/head_32.S b/arch/sparc/kernel/head_32.S index 69645cac54b..a0ec4adc7f7 100644 --- a/arch/sparc/kernel/head_32.S +++ b/arch/sparc/kernel/head_32.S @@ -819,10 +819,7 @@ continue_boot: mov %g0, %g3 stub %g3, [%g2 + %lo(boot_cpu_id)] -1: /* boot_cpu_id set. calculate boot_cpu_id4 = boot_cpu_id*4 */ - sll %g3, 2, %g3 - sethi %hi(boot_cpu_id4), %g2 - stub %g3, [%g2 + %lo(boot_cpu_id4)] +1: sll %g3, 2, %g3 /* Initialize the uwinmask value for init task just in case. * 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 2f7cfb5f756..635df5c9e60 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; /* which CPU booted us (0xff = not set) */ unsigned char boot_cpu_id = 0xff; /* 0xff will make it into DATA section... */ -unsigned char boot_cpu_id4; /* boot_cpu_id << 2 */ static void prom_console_write(struct console *con, const char *s, unsigned n) |