diff options
Diffstat (limited to 'arch/x86/include/asm/apic.h')
-rw-r--r-- | arch/x86/include/asm/apic.h | 46 |
1 files changed, 5 insertions, 41 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index 79752f2bdec5..465b309af254 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -85,14 +85,6 @@ static inline bool apic_from_smp_config(void) | |||
85 | #include <asm/paravirt.h> | 85 | #include <asm/paravirt.h> |
86 | #endif | 86 | #endif |
87 | 87 | ||
88 | #ifdef CONFIG_X86_64 | ||
89 | extern int is_vsmp_box(void); | ||
90 | #else | ||
91 | static inline int is_vsmp_box(void) | ||
92 | { | ||
93 | return 0; | ||
94 | } | ||
95 | #endif | ||
96 | extern int setup_profiling_timer(unsigned int); | 88 | extern int setup_profiling_timer(unsigned int); |
97 | 89 | ||
98 | static inline void native_apic_mem_write(u32 reg, u32 v) | 90 | static inline void native_apic_mem_write(u32 reg, u32 v) |
@@ -300,7 +292,6 @@ struct apic { | |||
300 | 292 | ||
301 | int dest_logical; | 293 | int dest_logical; |
302 | unsigned long (*check_apicid_used)(physid_mask_t *map, int apicid); | 294 | unsigned long (*check_apicid_used)(physid_mask_t *map, int apicid); |
303 | unsigned long (*check_apicid_present)(int apicid); | ||
304 | 295 | ||
305 | void (*vector_allocation_domain)(int cpu, struct cpumask *retmask, | 296 | void (*vector_allocation_domain)(int cpu, struct cpumask *retmask, |
306 | const struct cpumask *mask); | 297 | const struct cpumask *mask); |
@@ -309,21 +300,11 @@ struct apic { | |||
309 | void (*ioapic_phys_id_map)(physid_mask_t *phys_map, physid_mask_t *retmap); | 300 | void (*ioapic_phys_id_map)(physid_mask_t *phys_map, physid_mask_t *retmap); |
310 | 301 | ||
311 | void (*setup_apic_routing)(void); | 302 | void (*setup_apic_routing)(void); |
312 | int (*multi_timer_check)(int apic, int irq); | ||
313 | int (*cpu_present_to_apicid)(int mps_cpu); | 303 | int (*cpu_present_to_apicid)(int mps_cpu); |
314 | void (*apicid_to_cpu_present)(int phys_apicid, physid_mask_t *retmap); | 304 | void (*apicid_to_cpu_present)(int phys_apicid, physid_mask_t *retmap); |
315 | void (*setup_portio_remap)(void); | ||
316 | int (*check_phys_apicid_present)(int phys_apicid); | 305 | int (*check_phys_apicid_present)(int phys_apicid); |
317 | void (*enable_apic_mode)(void); | ||
318 | int (*phys_pkg_id)(int cpuid_apic, int index_msb); | 306 | int (*phys_pkg_id)(int cpuid_apic, int index_msb); |
319 | 307 | ||
320 | /* | ||
321 | * When one of the next two hooks returns 1 the apic | ||
322 | * is switched to this. Essentially they are additional | ||
323 | * probe functions: | ||
324 | */ | ||
325 | int (*mps_oem_check)(struct mpc_table *mpc, char *oem, char *productid); | ||
326 | |||
327 | unsigned int (*get_apic_id)(unsigned long x); | 308 | unsigned int (*get_apic_id)(unsigned long x); |
328 | unsigned long (*set_apic_id)(unsigned int id); | 309 | unsigned long (*set_apic_id)(unsigned int id); |
329 | unsigned long apic_id_mask; | 310 | unsigned long apic_id_mask; |
@@ -343,11 +324,7 @@ struct apic { | |||
343 | /* wakeup_secondary_cpu */ | 324 | /* wakeup_secondary_cpu */ |
344 | int (*wakeup_secondary_cpu)(int apicid, unsigned long start_eip); | 325 | int (*wakeup_secondary_cpu)(int apicid, unsigned long start_eip); |
345 | 326 | ||
346 | int trampoline_phys_low; | ||
347 | int trampoline_phys_high; | ||
348 | |||
349 | bool wait_for_init_deassert; | 327 | bool wait_for_init_deassert; |
350 | void (*smp_callin_clear_local_apic)(void); | ||
351 | void (*inquire_remote_apic)(int apicid); | 328 | void (*inquire_remote_apic)(int apicid); |
352 | 329 | ||
353 | /* apic ops */ | 330 | /* apic ops */ |
@@ -378,14 +355,6 @@ struct apic { | |||
378 | * won't be applied properly during early boot in this case. | 355 | * won't be applied properly during early boot in this case. |
379 | */ | 356 | */ |
380 | int (*x86_32_early_logical_apicid)(int cpu); | 357 | int (*x86_32_early_logical_apicid)(int cpu); |
381 | |||
382 | /* | ||
383 | * Optional method called from setup_local_APIC() after logical | ||
384 | * apicid is guaranteed to be known to initialize apicid -> node | ||
385 | * mapping if NUMA initialization hasn't done so already. Don't | ||
386 | * add new users. | ||
387 | */ | ||
388 | int (*x86_32_numa_cpu_node)(int cpu); | ||
389 | #endif | 358 | #endif |
390 | }; | 359 | }; |
391 | 360 | ||
@@ -496,14 +465,12 @@ static inline unsigned default_get_apic_id(unsigned long x) | |||
496 | } | 465 | } |
497 | 466 | ||
498 | /* | 467 | /* |
499 | * Warm reset vector default position: | 468 | * Warm reset vector position: |
500 | */ | 469 | */ |
501 | #define DEFAULT_TRAMPOLINE_PHYS_LOW 0x467 | 470 | #define TRAMPOLINE_PHYS_LOW 0x467 |
502 | #define DEFAULT_TRAMPOLINE_PHYS_HIGH 0x469 | 471 | #define TRAMPOLINE_PHYS_HIGH 0x469 |
503 | 472 | ||
504 | #ifdef CONFIG_X86_64 | 473 | #ifdef CONFIG_X86_64 |
505 | extern int default_acpi_madt_oem_check(char *, char *); | ||
506 | |||
507 | extern void apic_send_IPI_self(int vector); | 474 | extern void apic_send_IPI_self(int vector); |
508 | 475 | ||
509 | DECLARE_PER_CPU(int, x2apic_extra_bits); | 476 | DECLARE_PER_CPU(int, x2apic_extra_bits); |
@@ -552,6 +519,8 @@ static inline int default_apic_id_valid(int apicid) | |||
552 | return (apicid < 255); | 519 | return (apicid < 255); |
553 | } | 520 | } |
554 | 521 | ||
522 | extern int default_acpi_madt_oem_check(char *, char *); | ||
523 | |||
555 | extern void default_setup_apic_routing(void); | 524 | extern void default_setup_apic_routing(void); |
556 | 525 | ||
557 | extern struct apic apic_noop; | 526 | extern struct apic apic_noop; |
@@ -635,11 +604,6 @@ static inline unsigned long default_check_apicid_used(physid_mask_t *map, int ap | |||
635 | return physid_isset(apicid, *map); | 604 | return physid_isset(apicid, *map); |
636 | } | 605 | } |
637 | 606 | ||
638 | static inline unsigned long default_check_apicid_present(int bit) | ||
639 | { | ||
640 | return physid_isset(bit, phys_cpu_present_map); | ||
641 | } | ||
642 | |||
643 | static inline void default_ioapic_phys_id_map(physid_mask_t *phys_map, physid_mask_t *retmap) | 607 | static inline void default_ioapic_phys_id_map(physid_mask_t *phys_map, physid_mask_t *retmap) |
644 | { | 608 | { |
645 | *retmap = *phys_map; | 609 | *retmap = *phys_map; |