diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-09-20 14:24:58 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-20 14:25:03 -0400 |
commit | bfefb7a0c6e08736f2d5917c468467f134bf28bb (patch) | |
tree | 7aa7084114dc083fe5b4d7b532901bdeb67188e7 /arch/x86/include/asm/apic.h | |
parent | 8d0cc631f6dd0a9283ceb7d61d8b85ecbcd355ea (diff) | |
parent | 78f28b7c555359c67c2a0d23f7436e915329421e (diff) |
Merge branch 'linus' into x86/urgent
Merge reason: Bring in changes that the next patch will depend on.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/apic.h')
-rw-r--r-- | arch/x86/include/asm/apic.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index 9a86fb40490d..474d80d3e6cc 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -83,9 +83,6 @@ static inline bool apic_from_smp_config(void) | |||
83 | */ | 83 | */ |
84 | #ifdef CONFIG_PARAVIRT | 84 | #ifdef CONFIG_PARAVIRT |
85 | #include <asm/paravirt.h> | 85 | #include <asm/paravirt.h> |
86 | #else | ||
87 | #define setup_boot_clock setup_boot_APIC_clock | ||
88 | #define setup_secondary_clock setup_secondary_APIC_clock | ||
89 | #endif | 86 | #endif |
90 | 87 | ||
91 | #ifdef CONFIG_X86_64 | 88 | #ifdef CONFIG_X86_64 |
@@ -265,6 +262,8 @@ static inline void lapic_shutdown(void) { } | |||
265 | static inline void init_apic_mappings(void) { } | 262 | static inline void init_apic_mappings(void) { } |
266 | static inline void disable_local_APIC(void) { } | 263 | static inline void disable_local_APIC(void) { } |
267 | static inline void apic_disable(void) { } | 264 | static inline void apic_disable(void) { } |
265 | # define setup_boot_APIC_clock x86_init_noop | ||
266 | # define setup_secondary_APIC_clock x86_init_noop | ||
268 | #endif /* !CONFIG_X86_LOCAL_APIC */ | 267 | #endif /* !CONFIG_X86_LOCAL_APIC */ |
269 | 268 | ||
270 | #ifdef CONFIG_X86_64 | 269 | #ifdef CONFIG_X86_64 |
@@ -313,7 +312,7 @@ struct apic { | |||
313 | int (*cpu_present_to_apicid)(int mps_cpu); | 312 | int (*cpu_present_to_apicid)(int mps_cpu); |
314 | physid_mask_t (*apicid_to_cpu_present)(int phys_apicid); | 313 | physid_mask_t (*apicid_to_cpu_present)(int phys_apicid); |
315 | void (*setup_portio_remap)(void); | 314 | void (*setup_portio_remap)(void); |
316 | int (*check_phys_apicid_present)(int boot_cpu_physical_apicid); | 315 | int (*check_phys_apicid_present)(int phys_apicid); |
317 | void (*enable_apic_mode)(void); | 316 | void (*enable_apic_mode)(void); |
318 | int (*phys_pkg_id)(int cpuid_apic, int index_msb); | 317 | int (*phys_pkg_id)(int cpuid_apic, int index_msb); |
319 | 318 | ||
@@ -447,7 +446,7 @@ extern struct apic apic_x2apic_uv_x; | |||
447 | DECLARE_PER_CPU(int, x2apic_extra_bits); | 446 | DECLARE_PER_CPU(int, x2apic_extra_bits); |
448 | 447 | ||
449 | extern int default_cpu_present_to_apicid(int mps_cpu); | 448 | extern int default_cpu_present_to_apicid(int mps_cpu); |
450 | extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid); | 449 | extern int default_check_phys_apicid_present(int phys_apicid); |
451 | #endif | 450 | #endif |
452 | 451 | ||
453 | static inline void default_wait_for_init_deassert(atomic_t *deassert) | 452 | static inline void default_wait_for_init_deassert(atomic_t *deassert) |
@@ -563,9 +562,9 @@ static inline int __default_cpu_present_to_apicid(int mps_cpu) | |||
563 | } | 562 | } |
564 | 563 | ||
565 | static inline int | 564 | static inline int |
566 | __default_check_phys_apicid_present(int boot_cpu_physical_apicid) | 565 | __default_check_phys_apicid_present(int phys_apicid) |
567 | { | 566 | { |
568 | return physid_isset(boot_cpu_physical_apicid, phys_cpu_present_map); | 567 | return physid_isset(phys_apicid, phys_cpu_present_map); |
569 | } | 568 | } |
570 | 569 | ||
571 | #ifdef CONFIG_X86_32 | 570 | #ifdef CONFIG_X86_32 |
@@ -575,13 +574,13 @@ static inline int default_cpu_present_to_apicid(int mps_cpu) | |||
575 | } | 574 | } |
576 | 575 | ||
577 | static inline int | 576 | static inline int |
578 | default_check_phys_apicid_present(int boot_cpu_physical_apicid) | 577 | default_check_phys_apicid_present(int phys_apicid) |
579 | { | 578 | { |
580 | return __default_check_phys_apicid_present(boot_cpu_physical_apicid); | 579 | return __default_check_phys_apicid_present(phys_apicid); |
581 | } | 580 | } |
582 | #else | 581 | #else |
583 | extern int default_cpu_present_to_apicid(int mps_cpu); | 582 | extern int default_cpu_present_to_apicid(int mps_cpu); |
584 | extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid); | 583 | extern int default_check_phys_apicid_present(int phys_apicid); |
585 | #endif | 584 | #endif |
586 | 585 | ||
587 | static inline physid_mask_t default_apicid_to_cpu_present(int phys_apicid) | 586 | static inline physid_mask_t default_apicid_to_cpu_present(int phys_apicid) |