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
This commit is contained in:
Stefan Reinauer
2009-04-03 16:31:01 +00:00
committed by Stefan Reinauer
parent f7116c3bd0
commit 2fd2c7901e

View File

@ -291,14 +291,14 @@ void stop_this_cpu(void)
{ {
int timeout; int timeout;
unsigned long send_status; 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 */ /* 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); lapic_write_around(LAPIC_ICR, LAPIC_INT_LEVELTRIG | LAPIC_INT_ASSERT | LAPIC_DM_INIT);
/* wait for the ipi send to finish */ /* wait for the ipi send to finish */
@ -322,7 +322,7 @@ void stop_this_cpu(void)
printk_spew("Deasserting INIT.\n"); printk_spew("Deasserting INIT.\n");
/* Deassert the LAPIC INIT */ /* 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); lapic_write_around(LAPIC_ICR, LAPIC_INT_LEVELTRIG | LAPIC_DM_INIT);
printk_spew("Waiting for send to finish...\n"); printk_spew("Waiting for send to finish...\n");