aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/apic.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-09-20 14:24:58 -0400
committerIngo Molnar <mingo@elte.hu>2009-09-20 14:25:03 -0400
commitbfefb7a0c6e08736f2d5917c468467f134bf28bb (patch)
tree7aa7084114dc083fe5b4d7b532901bdeb67188e7 /arch/x86/include/asm/apic.h
parent8d0cc631f6dd0a9283ceb7d61d8b85ecbcd355ea (diff)
parent78f28b7c555359c67c2a0d23f7436e915329421e (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.h19
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) { }
265static inline void init_apic_mappings(void) { } 262static inline void init_apic_mappings(void) { }
266static inline void disable_local_APIC(void) { } 263static inline void disable_local_APIC(void) { }
267static inline void apic_disable(void) { } 264static 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;
447DECLARE_PER_CPU(int, x2apic_extra_bits); 446DECLARE_PER_CPU(int, x2apic_extra_bits);
448 447
449extern int default_cpu_present_to_apicid(int mps_cpu); 448extern int default_cpu_present_to_apicid(int mps_cpu);
450extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid); 449extern int default_check_phys_apicid_present(int phys_apicid);
451#endif 450#endif
452 451
453static inline void default_wait_for_init_deassert(atomic_t *deassert) 452static 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
565static inline int 564static 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
577static inline int 576static inline int
578default_check_phys_apicid_present(int boot_cpu_physical_apicid) 577default_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
583extern int default_cpu_present_to_apicid(int mps_cpu); 582extern int default_cpu_present_to_apicid(int mps_cpu);
584extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid); 583extern int default_check_phys_apicid_present(int phys_apicid);
585#endif 584#endif
586 585
587static inline physid_mask_t default_apicid_to_cpu_present(int phys_apicid) 586static inline physid_mask_t default_apicid_to_cpu_present(int phys_apicid)