]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] i386: Little cleanups in smpboot.c
authorAndi Kleen <ak@suse.de>
Wed, 2 May 2007 17:27:21 +0000 (19:27 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Wed, 2 May 2007 17:27:21 +0000 (19:27 +0200)
- Remove #if that is always set
- Fix warning

Signed-off-by: Andi Kleen <ak@suse.de>
arch/i386/kernel/smpboot.c

index a768eceeac37c71f7f72d3a6d94a0c71509b0aae..a4b7ad283f49ace7e351fbb45f4917a75157af7f 100644 (file)
@@ -516,7 +516,6 @@ static void unmap_cpu_to_logical_apicid(int cpu)
        unmap_cpu_to_node(cpu);
 }
 
-#if APIC_DEBUG
 static inline void __inquire_remote_apic(int apicid)
 {
        int i, regs[] = { APIC_ID >> 4, APIC_LVR >> 4, APIC_SPIV >> 4 };
@@ -548,14 +547,13 @@ static inline void __inquire_remote_apic(int apicid)
                switch (status) {
                case APIC_ICR_RR_VALID:
                        status = apic_read(APIC_RRR);
-                       printk("%08x\n", status);
+                       printk("%lx\n", status);
                        break;
                default:
                        printk("failed\n");
                }
        }
 }
-#endif
 
 #ifdef WAKE_SECONDARY_VIA_NMI
 /*