]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
x86: add hard_smp_prossor_id with MACRO in io_apic_xx.c
authorYinghai Lu <yhlu.kernel@gmail.com>
Sun, 24 Aug 2008 09:01:48 +0000 (02:01 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:02 +0000 (16:53 +0200)
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic_32.c
arch/x86/kernel/apic_64.c

index a54512bea6294c4a6186f82b06ff8316f37df031..93718ffb9b9c882dcb661845b41e081f61f1920b 100644 (file)
@@ -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
  */
index d3ec746aede4f623f6efe6419ba6d372ae2fd255..eeb69838c2f8b52de800c604268183ded79fff2c 100644 (file)
@@ -1612,10 +1612,12 @@ 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