aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/io_apic.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-27 23:41:42 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:19 -0500
commitd1d7cae8fd54a301a0de531b48451649933ffdcf (patch)
tree7cbd78a527f79564adf8f3ed095e1df051e0764d /arch/x86/kernel/io_apic.c
parentbdb1a9b62fc182d4da3143e346f7a0925d243352 (diff)
x86, apic: clean up check_apicid*() callbacks
Clean up these methods - to make it clearer which function is used in which case. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/io_apic.c')
-rw-r--r--arch/x86/kernel/io_apic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c
index 7f8b32b20897..733ecf172724 100644
--- a/arch/x86/kernel/io_apic.c
+++ b/arch/x86/kernel/io_apic.c
@@ -2135,7 +2135,7 @@ static void __init setup_ioapic_ids_from_mpc(void)
2135 * system must have a unique ID or we get lots of nice 2135 * system must have a unique ID or we get lots of nice
2136 * 'stuck on smp_invalidate_needed IPI wait' messages. 2136 * 'stuck on smp_invalidate_needed IPI wait' messages.
2137 */ 2137 */
2138 if (check_apicid_used(phys_id_present_map, 2138 if (apic->check_apicid_used(phys_id_present_map,
2139 mp_ioapics[apic_id].apicid)) { 2139 mp_ioapics[apic_id].apicid)) {
2140 printk(KERN_ERR "BIOS bug, IO-APIC#%d ID %d is already used!...\n", 2140 printk(KERN_ERR "BIOS bug, IO-APIC#%d ID %d is already used!...\n",
2141 apic_id, mp_ioapics[apic_id].apicid); 2141 apic_id, mp_ioapics[apic_id].apicid);
@@ -3878,10 +3878,10 @@ int __init io_apic_get_unique_id(int ioapic, int apic_id)
3878 * Every APIC in a system must have a unique ID or we get lots of nice 3878 * Every APIC in a system must have a unique ID or we get lots of nice
3879 * 'stuck on smp_invalidate_needed IPI wait' messages. 3879 * 'stuck on smp_invalidate_needed IPI wait' messages.
3880 */ 3880 */
3881 if (check_apicid_used(apic_id_map, apic_id)) { 3881 if (apic->check_apicid_used(apic_id_map, apic_id)) {
3882 3882
3883 for (i = 0; i < get_physical_broadcast(); i++) { 3883 for (i = 0; i < get_physical_broadcast(); i++) {
3884 if (!check_apicid_used(apic_id_map, i)) 3884 if (!apic->check_apicid_used(apic_id_map, i))
3885 break; 3885 break;
3886 } 3886 }
3887 3887