diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-28 00:50:47 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:22 -0500 |
commit | 72ce016583916fb7ffcbaa6a3e1f8f731b79a865 (patch) | |
tree | cd05f735f6b47278ecacebca6394dccf649c9f7e /arch/x86/kernel | |
parent | d190cb87c4503014353f2310c4bfa2268fa7111d (diff) |
x86, apic: clean up ->setup_apic_routing()
- separate the namespace
- remove macros
- remove namespace clash on 64-bit
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/acpi/boot.c | 5 | ||||
-rw-r--r-- | arch/x86/kernel/apic.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/genapic_64.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/mpparse.c | 6 | ||||
-rw-r--r-- | arch/x86/kernel/smpboot.c | 2 |
5 files changed, 8 insertions, 9 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 314fe0dddef4..539163161a4c 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c | |||
@@ -1360,9 +1360,8 @@ static void __init acpi_process_madt(void) | |||
1360 | acpi_ioapic = 1; | 1360 | acpi_ioapic = 1; |
1361 | 1361 | ||
1362 | smp_found_config = 1; | 1362 | smp_found_config = 1; |
1363 | #ifdef CONFIG_X86_32 | 1363 | if (apic->setup_apic_routing) |
1364 | setup_apic_routing(); | 1364 | apic->setup_apic_routing(); |
1365 | #endif | ||
1366 | } | 1365 | } |
1367 | } | 1366 | } |
1368 | if (error == -EINVAL) { | 1367 | if (error == -EINVAL) { |
diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c index b7077936ac09..fcbcc03cd4bd 100644 --- a/arch/x86/kernel/apic.c +++ b/arch/x86/kernel/apic.c | |||
@@ -1625,7 +1625,7 @@ int __init APIC_init_uniprocessor(void) | |||
1625 | enable_IR_x2apic(); | 1625 | enable_IR_x2apic(); |
1626 | #endif | 1626 | #endif |
1627 | #ifdef CONFIG_X86_64 | 1627 | #ifdef CONFIG_X86_64 |
1628 | setup_apic_routing(); | 1628 | default_setup_apic_routing(); |
1629 | #endif | 1629 | #endif |
1630 | 1630 | ||
1631 | verify_local_APIC(); | 1631 | verify_local_APIC(); |
diff --git a/arch/x86/kernel/genapic_64.c b/arch/x86/kernel/genapic_64.c index 060945b8eec4..d57d2138f078 100644 --- a/arch/x86/kernel/genapic_64.c +++ b/arch/x86/kernel/genapic_64.c | |||
@@ -44,7 +44,7 @@ static struct genapic *apic_probe[] __initdata = { | |||
44 | /* | 44 | /* |
45 | * Check the APIC IDs in bios_cpu_apicid and choose the APIC mode. | 45 | * Check the APIC IDs in bios_cpu_apicid and choose the APIC mode. |
46 | */ | 46 | */ |
47 | void __init setup_apic_routing(void) | 47 | void __init default_setup_apic_routing(void) |
48 | { | 48 | { |
49 | if (apic == &apic_x2apic_phys || apic == &apic_x2apic_cluster) { | 49 | if (apic == &apic_x2apic_phys || apic == &apic_x2apic_cluster) { |
50 | if (!intr_remapping_enabled) | 50 | if (!intr_remapping_enabled) |
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index fa6bb263892e..c8a534a16d98 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c | |||
@@ -390,9 +390,9 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early) | |||
390 | generic_bigsmp_probe(); | 390 | generic_bigsmp_probe(); |
391 | #endif | 391 | #endif |
392 | 392 | ||
393 | #ifdef CONFIG_X86_32 | 393 | if (apic->setup_apic_routing) |
394 | setup_apic_routing(); | 394 | apic->setup_apic_routing(); |
395 | #endif | 395 | |
396 | if (!num_processors) | 396 | if (!num_processors) |
397 | printk(KERN_ERR "MPTABLE: no processors registered!\n"); | 397 | printk(KERN_ERR "MPTABLE: no processors registered!\n"); |
398 | return num_processors; | 398 | return num_processors; |
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 45c096f605fe..3791b4ae567f 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -1128,7 +1128,7 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus) | |||
1128 | 1128 | ||
1129 | #ifdef CONFIG_X86_64 | 1129 | #ifdef CONFIG_X86_64 |
1130 | enable_IR_x2apic(); | 1130 | enable_IR_x2apic(); |
1131 | setup_apic_routing(); | 1131 | default_setup_apic_routing(); |
1132 | #endif | 1132 | #endif |
1133 | 1133 | ||
1134 | if (smp_sanity_check(max_cpus) < 0) { | 1134 | if (smp_sanity_check(max_cpus) < 0) { |