summaryrefslogtreecommitdiff
path: root/src/cpu/x86/lapic
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-04-03 16:31:01 +0000
committerStefan Reinauer <stepan@openbios.org>2009-04-03 16:31:01 +0000
commit2fd2c7901ebca153afdbba5797606cb03ca6748b (patch)
treecec7a37f16c51f3e112b0e1f533e23dfb4fc5efc /src/cpu/x86/lapic
parentf7116c3bd08e27fba8f1fb1ea25cfb8c4b592c67 (diff)
downloadcoreboot-2fd2c7901ebca153afdbba5797606cb03ca6748b.tar.xz
drop another shadow variable (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4056 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/x86/lapic')
-rw-r--r--src/cpu/x86/lapic/lapic_cpu_init.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cpu/x86/lapic/lapic_cpu_init.c b/src/cpu/x86/lapic/lapic_cpu_init.c
index d7fdd51886..1ec13845f3 100644
--- a/src/cpu/x86/lapic/lapic_cpu_init.c
+++ b/src/cpu/x86/lapic/lapic_cpu_init.c
@@ -291,14 +291,14 @@ void stop_this_cpu(void)
{
int timeout;
unsigned long send_status;
- unsigned long lapicid;
+ unsigned long id;
- lapicid = lapic_read(LAPIC_ID) >> 24;
+ id = lapic_read(LAPIC_ID) >> 24;
- printk_debug("CPU %ld going down...\n", lapicid);
+ printk_debug("CPU %ld going down...\n", id);
/* send an LAPIC INIT to myself */
- lapic_write_around(LAPIC_ICR2, SET_LAPIC_DEST_FIELD(lapicid));
+ lapic_write_around(LAPIC_ICR2, SET_LAPIC_DEST_FIELD(id));
lapic_write_around(LAPIC_ICR, LAPIC_INT_LEVELTRIG | LAPIC_INT_ASSERT | LAPIC_DM_INIT);
/* wait for the ipi send to finish */
@@ -322,7 +322,7 @@ void stop_this_cpu(void)
printk_spew("Deasserting INIT.\n");
/* Deassert the LAPIC INIT */
- lapic_write_around(LAPIC_ICR2, SET_LAPIC_DEST_FIELD(lapicid));
+ lapic_write_around(LAPIC_ICR2, SET_LAPIC_DEST_FIELD(id));
lapic_write_around(LAPIC_ICR, LAPIC_INT_LEVELTRIG | LAPIC_DM_INIT);
printk_spew("Waiting for send to finish...\n");