[coreboot] [v2] r4056 - trunk/coreboot-v2/src/cpu/x86/lapic

svn at coreboot.org svn at coreboot.org
Fri Apr 3 18:31:02 CEST 2009


Author: stepan
Date: 2009-04-03 18:31:01 +0200 (Fri, 03 Apr 2009)
New Revision: 4056

Modified:
   trunk/coreboot-v2/src/cpu/x86/lapic/lapic_cpu_init.c
Log:
drop another shadow variable (trivial)

Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>



Modified: trunk/coreboot-v2/src/cpu/x86/lapic/lapic_cpu_init.c
===================================================================
--- trunk/coreboot-v2/src/cpu/x86/lapic/lapic_cpu_init.c	2009-04-03 16:29:35 UTC (rev 4055)
+++ trunk/coreboot-v2/src/cpu/x86/lapic/lapic_cpu_init.c	2009-04-03 16:31:01 UTC (rev 4056)
@@ -291,14 +291,14 @@
 {
 	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 @@
 
 	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");





More information about the coreboot mailing list