diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-28 09:20:18 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:30 -0500 |
commit | debccb3e77be52cfc26c5a99e123c114c5c72aeb (patch) | |
tree | 27c015b45085b2042737d94a3fbd3c62fe143c37 /arch/x86/include/asm/mach-default | |
parent | 94af18755266edf46803564414d74f9621aaded8 (diff) |
x86, apic: refactor ->cpu_mask_to_apicid*()
- spread out the namespace on a per driver basis
- clean up the functions
- get rid of macros
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/mach-default')
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_apic.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/include/asm/mach-default/mach_apic.h b/arch/x86/include/asm/mach-default/mach_apic.h index 8719208f2735..8972f8434145 100644 --- a/arch/x86/include/asm/mach-default/mach_apic.h +++ b/arch/x86/include/asm/mach-default/mach_apic.h | |||
@@ -19,8 +19,6 @@ static inline const struct cpumask *default_target_cpus(void) | |||
19 | 19 | ||
20 | #ifdef CONFIG_X86_64 | 20 | #ifdef CONFIG_X86_64 |
21 | #include <asm/genapic.h> | 21 | #include <asm/genapic.h> |
22 | #define cpu_mask_to_apicid (apic->cpu_mask_to_apicid) | ||
23 | #define cpu_mask_to_apicid_and (apic->cpu_mask_to_apicid_and) | ||
24 | #define read_apic_id() (apic->get_apic_id(apic_read(APIC_ID))) | 22 | #define read_apic_id() (apic->get_apic_id(apic_read(APIC_ID))) |
25 | #define send_IPI_self (apic->send_IPI_self) | 23 | #define send_IPI_self (apic->send_IPI_self) |
26 | #define wakeup_secondary_cpu (apic->wakeup_cpu) | 24 | #define wakeup_secondary_cpu (apic->wakeup_cpu) |
@@ -49,13 +47,15 @@ static inline int default_apic_id_registered(void) | |||
49 | return physid_isset(read_apic_id(), phys_cpu_present_map); | 47 | return physid_isset(read_apic_id(), phys_cpu_present_map); |
50 | } | 48 | } |
51 | 49 | ||
52 | static inline unsigned int cpu_mask_to_apicid(const struct cpumask *cpumask) | 50 | static inline unsigned int |
51 | default_cpu_mask_to_apicid(const struct cpumask *cpumask) | ||
53 | { | 52 | { |
54 | return cpumask_bits(cpumask)[0]; | 53 | return cpumask_bits(cpumask)[0]; |
55 | } | 54 | } |
56 | 55 | ||
57 | static inline unsigned int cpu_mask_to_apicid_and(const struct cpumask *cpumask, | 56 | static inline unsigned int |
58 | const struct cpumask *andmask) | 57 | default_cpu_mask_to_apicid_and(const struct cpumask *cpumask, |
58 | const struct cpumask *andmask) | ||
59 | { | 59 | { |
60 | unsigned long mask1 = cpumask_bits(cpumask)[0]; | 60 | unsigned long mask1 = cpumask_bits(cpumask)[0]; |
61 | unsigned long mask2 = cpumask_bits(andmask)[0]; | 61 | unsigned long mask2 = cpumask_bits(andmask)[0]; |