aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mach-generic/default.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-28 00:50:47 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:20 -0500
commite2d40b1878bd13ca1028ddd299c48e4821ac3535 (patch)
tree6b2a69b3323346137e7146537edd1118dcce7862 /arch/x86/mach-generic/default.c
parent2e867b17cc02e1799f18126af0ddd7b63dd8f6f4 (diff)
x86, apic: clean up ->vector_allocation_domain()
- separate the namespace - remove macros - move the default vector-allocation-domain to mach-generic - fix whitespace damage Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mach-generic/default.c')
-rw-r--r--arch/x86/mach-generic/default.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/x86/mach-generic/default.c b/arch/x86/mach-generic/default.c
index e89e8c9dd68d..6adc3c69a3c9 100644
--- a/arch/x86/mach-generic/default.c
+++ b/arch/x86/mach-generic/default.c
@@ -18,6 +18,20 @@
18#include <asm/mach-default/mach_mpparse.h> 18#include <asm/mach-default/mach_mpparse.h>
19#include <asm/mach-default/mach_wakecpu.h> 19#include <asm/mach-default/mach_wakecpu.h>
20 20
21static void default_vector_allocation_domain(int cpu, struct cpumask *retmask)
22{
23 /*
24 * Careful. Some cpus do not strictly honor the set of cpus
25 * specified in the interrupt destination when using lowest
26 * priority interrupt delivery mode.
27 *
28 * In particular there was a hyperthreading cpu observed to
29 * deliver interrupts to the wrong hyperthread when only one
30 * hyperthread was specified in the interrupt desitination.
31 */
32 *retmask = (cpumask_t) { { [0] = APIC_ALL_CPUS } };
33}
34
21/* should be called last. */ 35/* should be called last. */
22static int probe_default(void) 36static int probe_default(void)
23{ 37{
@@ -41,7 +55,7 @@ struct genapic apic_default = {
41 .check_apicid_used = default_check_apicid_used, 55 .check_apicid_used = default_check_apicid_used,
42 .check_apicid_present = default_check_apicid_present, 56 .check_apicid_present = default_check_apicid_present,
43 57
44 .vector_allocation_domain = vector_allocation_domain, 58 .vector_allocation_domain = default_vector_allocation_domain,
45 .init_apic_ldr = init_apic_ldr, 59 .init_apic_ldr = init_apic_ldr,
46 60
47 .ioapic_phys_id_map = ioapic_phys_id_map, 61 .ioapic_phys_id_map = ioapic_phys_id_map,