diff options
author | Len Brown <len.brown@intel.com> | 2009-09-19 00:11:26 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-09-19 00:11:26 -0400 |
commit | c602c65b2f81d14456771d1e3f15d1381f4b7efa (patch) | |
tree | f1f833c8dd6c1519eeb101be32f7fe54a9605af5 /arch/x86/include/asm/apic.h | |
parent | 3834f47291df475be3f0f0fb7ccaa098967cc054 (diff) | |
parent | 78f28b7c555359c67c2a0d23f7436e915329421e (diff) |
Merge branch 'linus' into sfi-release
Conflicts:
arch/x86/kernel/setup.c
drivers/acpi/power.c
init/main.c
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'arch/x86/include/asm/apic.h')
-rw-r--r-- | arch/x86/include/asm/apic.h | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index bb7d47925847..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 |
@@ -183,6 +180,10 @@ static inline int x2apic_enabled(void) | |||
183 | } | 180 | } |
184 | 181 | ||
185 | #define x2apic_supported() (cpu_has_x2apic) | 182 | #define x2apic_supported() (cpu_has_x2apic) |
183 | static inline void x2apic_force_phys(void) | ||
184 | { | ||
185 | x2apic_phys = 1; | ||
186 | } | ||
186 | #else | 187 | #else |
187 | static inline void check_x2apic(void) | 188 | static inline void check_x2apic(void) |
188 | { | 189 | { |
@@ -194,6 +195,9 @@ static inline int x2apic_enabled(void) | |||
194 | { | 195 | { |
195 | return 0; | 196 | return 0; |
196 | } | 197 | } |
198 | static inline void x2apic_force_phys(void) | ||
199 | { | ||
200 | } | ||
197 | 201 | ||
198 | #define x2apic_preenabled 0 | 202 | #define x2apic_preenabled 0 |
199 | #define x2apic_supported() 0 | 203 | #define x2apic_supported() 0 |
@@ -245,6 +249,8 @@ static inline void lapic_shutdown(void) { } | |||
245 | static inline void init_apic_mappings(void) { } | 249 | static inline void init_apic_mappings(void) { } |
246 | static inline void disable_local_APIC(void) { } | 250 | static inline void disable_local_APIC(void) { } |
247 | 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 | ||
248 | #endif /* !CONFIG_X86_LOCAL_APIC */ | 254 | #endif /* !CONFIG_X86_LOCAL_APIC */ |
249 | 255 | ||
250 | #ifdef CONFIG_X86_64 | 256 | #ifdef CONFIG_X86_64 |
@@ -293,7 +299,7 @@ struct apic { | |||
293 | int (*cpu_present_to_apicid)(int mps_cpu); | 299 | int (*cpu_present_to_apicid)(int mps_cpu); |
294 | physid_mask_t (*apicid_to_cpu_present)(int phys_apicid); | 300 | physid_mask_t (*apicid_to_cpu_present)(int phys_apicid); |
295 | void (*setup_portio_remap)(void); | 301 | void (*setup_portio_remap)(void); |
296 | int (*check_phys_apicid_present)(int boot_cpu_physical_apicid); | 302 | int (*check_phys_apicid_present)(int phys_apicid); |
297 | void (*enable_apic_mode)(void); | 303 | void (*enable_apic_mode)(void); |
298 | int (*phys_pkg_id)(int cpuid_apic, int index_msb); | 304 | int (*phys_pkg_id)(int cpuid_apic, int index_msb); |
299 | 305 | ||
@@ -427,7 +433,7 @@ extern struct apic apic_x2apic_uv_x; | |||
427 | DECLARE_PER_CPU(int, x2apic_extra_bits); | 433 | DECLARE_PER_CPU(int, x2apic_extra_bits); |
428 | 434 | ||
429 | extern int default_cpu_present_to_apicid(int mps_cpu); | 435 | extern int default_cpu_present_to_apicid(int mps_cpu); |
430 | extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid); | 436 | extern int default_check_phys_apicid_present(int phys_apicid); |
431 | #endif | 437 | #endif |
432 | 438 | ||
433 | static inline void default_wait_for_init_deassert(atomic_t *deassert) | 439 | static inline void default_wait_for_init_deassert(atomic_t *deassert) |
@@ -543,9 +549,9 @@ static inline int __default_cpu_present_to_apicid(int mps_cpu) | |||
543 | } | 549 | } |
544 | 550 | ||
545 | static inline int | 551 | static inline int |
546 | __default_check_phys_apicid_present(int boot_cpu_physical_apicid) | 552 | __default_check_phys_apicid_present(int phys_apicid) |
547 | { | 553 | { |
548 | return physid_isset(boot_cpu_physical_apicid, phys_cpu_present_map); | 554 | return physid_isset(phys_apicid, phys_cpu_present_map); |
549 | } | 555 | } |
550 | 556 | ||
551 | #ifdef CONFIG_X86_32 | 557 | #ifdef CONFIG_X86_32 |
@@ -555,13 +561,13 @@ static inline int default_cpu_present_to_apicid(int mps_cpu) | |||
555 | } | 561 | } |
556 | 562 | ||
557 | static inline int | 563 | static inline int |
558 | default_check_phys_apicid_present(int boot_cpu_physical_apicid) | 564 | default_check_phys_apicid_present(int phys_apicid) |
559 | { | 565 | { |
560 | return __default_check_phys_apicid_present(boot_cpu_physical_apicid); | 566 | return __default_check_phys_apicid_present(phys_apicid); |
561 | } | 567 | } |
562 | #else | 568 | #else |
563 | extern int default_cpu_present_to_apicid(int mps_cpu); | 569 | extern int default_cpu_present_to_apicid(int mps_cpu); |
564 | extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid); | 570 | extern int default_check_phys_apicid_present(int phys_apicid); |
565 | #endif | 571 | #endif |
566 | 572 | ||
567 | 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) |