]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86, UV: set full apicid in uv_hub_send_ipi
authorDimitri Sivanich <sivanich@sgi.com>
Fri, 13 Feb 2009 14:40:55 +0000 (08:40 -0600)
committerIngo Molnar <mingo@elte.hu>
Fri, 13 Feb 2009 18:13:13 +0000 (19:13 +0100)
The uv_hub_send_ipi() function needs to set the full apicid in the
UVH_IPI_INT mmr.

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

index 6adb5e6f4d92ccb4472927b0ec571888f9590be2..89b84e004f04bcca637580682ad13167eb68562c 100644 (file)
@@ -114,16 +114,15 @@ int uv_wakeup_secondary(int phys_apicid, unsigned int start_rip)
 
 static void uv_send_IPI_one(int cpu, int vector)
 {
-       unsigned long val, apicid, lapicid;
+       unsigned long val, apicid;
        int pnode;
 
        apicid = per_cpu(x86_cpu_to_apicid, cpu);
-       lapicid = apicid & 0x3f; /* ZZZ macro needed */
        pnode = uv_apicid_to_pnode(apicid);
 
-       val = (     1UL << UVH_IPI_INT_SEND_SHFT    ) |
-             ( lapicid << UVH_IPI_INT_APIC_ID_SHFT ) |
-             (  vector << UVH_IPI_INT_VECTOR_SHFT  );
+       val = (1UL << UVH_IPI_INT_SEND_SHFT) |
+             (apicid << UVH_IPI_INT_APIC_ID_SHFT) |
+             (vector << UVH_IPI_INT_VECTOR_SHFT);
 
        uv_write_global_mmr64(pnode, UVH_IPI_INT, val);
 }