diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-28 07:24:54 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:27 -0500 |
commit | cb8cc442dc7e07cb5438b357843ab4095ad73933 (patch) | |
tree | d818d1814507b2fe71f1e07c4bc108fe0c9ebb91 /arch/x86/include/asm/mach-default | |
parent | d4c9a9f3d416cfa1f5ffbe09d864d069467fe693 (diff) |
x86, apic: refactor ->phys_pkg_id()
Refactor the ->phys_pkg_id() methods:
- namespace separation
- macro wrapper removal
- open-coded calls to the methods in the generic code
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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/include/asm/mach-default/mach_apic.h b/arch/x86/include/asm/mach-default/mach_apic.h index 55797a35150f..d0605281a6b7 100644 --- a/arch/x86/include/asm/mach-default/mach_apic.h +++ b/arch/x86/include/asm/mach-default/mach_apic.h | |||
@@ -21,7 +21,6 @@ static inline const struct cpumask *default_target_cpus(void) | |||
21 | #include <asm/genapic.h> | 21 | #include <asm/genapic.h> |
22 | #define cpu_mask_to_apicid (apic->cpu_mask_to_apicid) | 22 | #define cpu_mask_to_apicid (apic->cpu_mask_to_apicid) |
23 | #define cpu_mask_to_apicid_and (apic->cpu_mask_to_apicid_and) | 23 | #define cpu_mask_to_apicid_and (apic->cpu_mask_to_apicid_and) |
24 | #define phys_pkg_id (apic->phys_pkg_id) | ||
25 | #define read_apic_id() (GET_APIC_ID(apic_read(APIC_ID))) | 24 | #define read_apic_id() (GET_APIC_ID(apic_read(APIC_ID))) |
26 | #define send_IPI_self (apic->send_IPI_self) | 25 | #define send_IPI_self (apic->send_IPI_self) |
27 | #define wakeup_secondary_cpu (apic->wakeup_cpu) | 26 | #define wakeup_secondary_cpu (apic->wakeup_cpu) |
@@ -65,7 +64,7 @@ static inline unsigned int cpu_mask_to_apicid_and(const struct cpumask *cpumask, | |||
65 | return (unsigned int)(mask1 & mask2 & mask3); | 64 | return (unsigned int)(mask1 & mask2 & mask3); |
66 | } | 65 | } |
67 | 66 | ||
68 | static inline int phys_pkg_id(int cpuid_apic, int index_msb) | 67 | static inline int default_phys_pkg_id(int cpuid_apic, int index_msb) |
69 | { | 68 | { |
70 | return cpuid_apic >> index_msb; | 69 | return cpuid_apic >> index_msb; |
71 | } | 70 | } |