Skip to content

Commit

Permalink
x86, UV: Fix APICID shift for Westmere processors
Browse files Browse the repository at this point in the history
Westmere processors use a different algorithm for
assigning APICIDs on SGI UV systems. The location of the
node number within the apicid is now a function of the
processor type.

Signed-off-by: Jack Steiner <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Jack Steiner authored and Ingo Molnar committed Jan 11, 2011
1 parent 24d9b70 commit 990a32d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/apic/x2apic_uv_x.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ struct apic __refdata apic_x2apic_uv_x = {

static __cpuinit void set_x2apic_extra_bits(int pnode)
{
__get_cpu_var(x2apic_extra_bits) = (pnode << 6);
__get_cpu_var(x2apic_extra_bits) = (pnode << uvh_apicid.s.pnode_shift);
}

/*
Expand Down

0 comments on commit 990a32d

Please sign in to comment.