]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: UV, SGI RTC: fix uv_time.c for UP
authorDimitri Sivanich <sivanich@sgi.com>
Wed, 4 Mar 2009 22:02:46 +0000 (16:02 -0600)
committerIngo Molnar <mingo@elte.hu>
Thu, 5 Mar 2009 10:27:49 +0000 (11:27 +0100)
Fix non-smp build of uv_time.c.

Signed-off-by: Dimitri Sivanich <sivanich@sgi.com>
LKML-Reference: <20090304220246.GC6288@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/uv_time.c

index 6f8e3256ab2af5c812f83df658df1d7f57594531..2ffb6c53326e9bf728c6b5f5c984d13402b581c9 100644 (file)
@@ -24,6 +24,8 @@
 #include <asm/uv/uv_hub.h>
 #include <asm/uv/bios.h>
 #include <asm/uv/uv.h>
+#include <asm/apic.h>
+#include <asm/cpu.h>
 
 #define RTC_NAME               "sgi_rtc"
 
@@ -84,7 +86,7 @@ static void uv_rtc_send_IPI(int cpu)
        unsigned long apicid, val;
        int pnode;
 
-       apicid = per_cpu(x86_cpu_to_apicid, cpu);
+       apicid = cpu_physical_id(cpu);
        pnode = uv_apicid_to_pnode(apicid);
        val = (1UL << UVH_IPI_INT_SEND_SHFT) |
              (apicid << UVH_IPI_INT_APIC_ID_SHFT) |