summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic_32.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-08-24 02:01:48 -0700
committerIngo Molnar <mingo@elte.hu>2008-10-16 16:53:02 +0200
commit3491998dd54f6d4ef7344518fe5463b299fdf537 (patch)
tree879f7d82d6c9894a0a149b3e73ce95f8763d9d2f /arch/x86/kernel/apic_32.c
parent49899eacce79ce39faf531dad3e00f771eba2eb1 (diff)
downloadop-kernel-dev-3491998dd54f6d4ef7344518fe5463b299fdf537.zip
op-kernel-dev-3491998dd54f6d4ef7344518fe5463b299fdf537.tar.gz
x86: add hard_smp_prossor_id with MACRO in io_apic_xx.c
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic_32.c')
-rw-r--r--arch/x86/kernel/apic_32.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c
index a54512b..93718ff 100644
--- a/arch/x86/kernel/apic_32.c
+++ b/arch/x86/kernel/apic_32.c
@@ -1600,6 +1600,13 @@ void __cpuinit generic_processor_info(int apicid, int version)
cpu_set(cpu, cpu_present_map);
}
+#ifdef CONFIG_X86_64
+int hard_smp_processor_id(void)
+{
+ return read_apic_id();
+}
+#endif
+
/*
* Power management
*/
OpenPOWER on IntegriCloud