]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: apic - introduce get_physical_broadcast for 64bit
authorCyrill Gorcunov <gorcunov@gmail.com>
Sun, 24 Aug 2008 09:01:40 +0000 (02:01 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:00 +0000 (16:53 +0200)
We don't really use it now on 64bit mode but
could reserve it for future.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic_64.c

index 8f551276681e0e1239b57d09383fb7687ddeb5a7..bb46711a0b1eba21eca78b416d26d899eee859d4 100644 (file)
@@ -244,6 +244,16 @@ void __cpuinit enable_NMI_through_LVT0(void)
        apic_write(APIC_LVT0, v);
 }
 
+#ifdef CONFIG_X86_32
+/**
+ * get_physical_broadcast - Get number of physical broadcast IDs
+ */
+int get_physical_broadcast(void)
+{
+       return modern_apic() ? 0xff : 0xf;
+}
+#endif
+
 /**
  * lapic_get_maxlvt - get the maximum number of local vector table entries
  */