diff options
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 586b7adb8e53..c6d21b18806c 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -70,9 +70,6 @@ static inline void default_inquire_remote_apic(int apicid) | |||
70 | */ | 70 | */ |
71 | #ifdef CONFIG_PARAVIRT | 71 | #ifdef CONFIG_PARAVIRT |
72 | #include <asm/paravirt.h> | 72 | #include <asm/paravirt.h> |
73 | #else | ||
74 | #define setup_boot_clock setup_boot_APIC_clock | ||
75 | #define setup_secondary_clock setup_secondary_APIC_clock | ||
76 | #endif | 73 | #endif |
77 | 74 | ||
78 | #ifdef CONFIG_X86_64 | 75 | #ifdef CONFIG_X86_64 |
@@ -252,6 +249,8 @@ static inline void lapic_shutdown(void) { } | |||
252 | static inline void init_apic_mappings(void) { } | 249 | static inline void init_apic_mappings(void) { } |
253 | static inline void disable_local_APIC(void) { } | 250 | static inline void disable_local_APIC(void) { } |
254 | static inline void apic_disable(void) { } | 251 | static inline void apic_disable(void) { } |
252 | # define setup_boot_APIC_clock x86_init_noop | ||
253 | # define setup_secondary_APIC_clock x86_init_noop | ||
255 | #endif /* !CONFIG_X86_LOCAL_APIC */ | 254 | #endif /* !CONFIG_X86_LOCAL_APIC */ |
256 | 255 | ||
257 | #ifdef CONFIG_X86_64 | 256 | #ifdef CONFIG_X86_64 |
@@ -300,7 +299,7 @@ struct apic { | |||
300 | int (*cpu_present_to_apicid)(int mps_cpu); | 299 | int (*cpu_present_to_apicid)(int mps_cpu); |
301 | physid_mask_t (*apicid_to_cpu_present)(int phys_apicid); | 300 | physid_mask_t (*apicid_to_cpu_present)(int phys_apicid); |
302 | void (*setup_portio_remap)(void); | 301 | void (*setup_portio_remap)(void); |
303 | int (*check_phys_apicid_present)(int boot_cpu_physical_apicid); | 302 | int (*check_phys_apicid_present)(int phys_apicid); |
304 | void (*enable_apic_mode)(void); | 303 | void (*enable_apic_mode)(void); |
305 | int (*phys_pkg_id)(int cpuid_apic, int index_msb); | 304 | int (*phys_pkg_id)(int cpuid_apic, int index_msb); |
306 | 305 | ||
@@ -434,7 +433,7 @@ extern struct apic apic_x2apic_uv_x; | |||
434 | DECLARE_PER_CPU(int, x2apic_extra_bits); | 433 | DECLARE_PER_CPU(int, x2apic_extra_bits); |
435 | 434 | ||
436 | extern int default_cpu_present_to_apicid(int mps_cpu); | 435 | extern int default_cpu_present_to_apicid(int mps_cpu); |
437 | extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid); | 436 | extern int default_check_phys_apicid_present(int phys_apicid); |
438 | #endif | 437 | #endif |
439 | 438 | ||
440 | static inline void default_wait_for_init_deassert(atomic_t *deassert) | 439 | static inline void default_wait_for_init_deassert(atomic_t *deassert) |
@@ -550,9 +549,9 @@ static inline int __default_cpu_present_to_apicid(int mps_cpu) | |||
550 | } | 549 | } |
551 | 550 | ||
552 | static inline int | 551 | static inline int |
553 | __default_check_phys_apicid_present(int boot_cpu_physical_apicid) | 552 | __default_check_phys_apicid_present(int phys_apicid) |
554 | { | 553 | { |
555 | return physid_isset(boot_cpu_physical_apicid, phys_cpu_present_map); | 554 | return physid_isset(phys_apicid, phys_cpu_present_map); |
556 | } | 555 | } |
557 | 556 | ||
558 | #ifdef CONFIG_X86_32 | 557 | #ifdef CONFIG_X86_32 |
@@ -562,13 +561,13 @@ static inline int default_cpu_present_to_apicid(int mps_cpu) | |||
562 | } | 561 | } |
563 | 562 | ||
564 | static inline int | 563 | static inline int |
565 | default_check_phys_apicid_present(int boot_cpu_physical_apicid) | 564 | default_check_phys_apicid_present(int phys_apicid) |
566 | { | 565 | { |
567 | return __default_check_phys_apicid_present(boot_cpu_physical_apicid); | 566 | return __default_check_phys_apicid_present(phys_apicid); |
568 | } | 567 | } |
569 | #else | 568 | #else |
570 | extern int default_cpu_present_to_apicid(int mps_cpu); | 569 | extern int default_cpu_present_to_apicid(int mps_cpu); |
571 | extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid); | 570 | extern int default_check_phys_apicid_present(int phys_apicid); |
572 | #endif | 571 | #endif |
573 | 572 | ||
574 | static inline physid_mask_t default_apicid_to_cpu_present(int phys_apicid) | 573 | static inline physid_mask_t default_apicid_to_cpu_present(int phys_apicid) |