diff options
Diffstat (limited to 'arch/x86/include/asm/apic.h')
-rw-r--r-- | arch/x86/include/asm/apic.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index 3ab9bdd87e79..a9371c91718c 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -288,6 +288,7 @@ struct apic { | |||
288 | 288 | ||
289 | int (*probe)(void); | 289 | int (*probe)(void); |
290 | int (*acpi_madt_oem_check)(char *oem_id, char *oem_table_id); | 290 | int (*acpi_madt_oem_check)(char *oem_id, char *oem_table_id); |
291 | int (*apic_id_valid)(int apicid); | ||
291 | int (*apic_id_registered)(void); | 292 | int (*apic_id_registered)(void); |
292 | 293 | ||
293 | u32 irq_delivery_mode; | 294 | u32 irq_delivery_mode; |
@@ -532,6 +533,11 @@ static inline unsigned int read_apic_id(void) | |||
532 | return apic->get_apic_id(reg); | 533 | return apic->get_apic_id(reg); |
533 | } | 534 | } |
534 | 535 | ||
536 | static inline int default_apic_id_valid(int apicid) | ||
537 | { | ||
538 | return x2apic_mode || (apicid < 255); | ||
539 | } | ||
540 | |||
535 | extern void default_setup_apic_routing(void); | 541 | extern void default_setup_apic_routing(void); |
536 | 542 | ||
537 | extern struct apic apic_noop; | 543 | extern struct apic apic_noop; |