diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-09-05 03:21:21 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-05 03:21:21 -0400 |
commit | 9042763808c5285a1a61b45b0fe98a710a4c903c (patch) | |
tree | 349be736a3b56a64c8835df03f127959bfc6e0e0 /arch/x86/kernel/genx2apic_cluster.c | |
parent | 446d27338d3b422dd3dfe496d0f362230994d059 (diff) | |
parent | aa3341a168883654d1b13f5931c5ed2762537831 (diff) |
Merge branch 'x86/x2apic' into x86/core
Conflicts:
arch/x86/kernel/cpu/common_64.c
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/genx2apic_cluster.c')
-rw-r--r-- | arch/x86/kernel/genx2apic_cluster.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/kernel/genx2apic_cluster.c b/arch/x86/kernel/genx2apic_cluster.c index fed9f68efd66..e4bf2cc0d743 100644 --- a/arch/x86/kernel/genx2apic_cluster.c +++ b/arch/x86/kernel/genx2apic_cluster.c | |||
@@ -120,14 +120,9 @@ static unsigned long set_apic_id(unsigned int id) | |||
120 | return x; | 120 | return x; |
121 | } | 121 | } |
122 | 122 | ||
123 | static unsigned int x2apic_read_id(void) | ||
124 | { | ||
125 | return apic_read(APIC_ID); | ||
126 | } | ||
127 | |||
128 | static unsigned int phys_pkg_id(int index_msb) | 123 | static unsigned int phys_pkg_id(int index_msb) |
129 | { | 124 | { |
130 | return x2apic_read_id() >> index_msb; | 125 | return current_cpu_data.initial_apicid >> index_msb; |
131 | } | 126 | } |
132 | 127 | ||
133 | static void x2apic_send_IPI_self(int vector) | 128 | static void x2apic_send_IPI_self(int vector) |