mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
x86: increase size of APICID
Increase the number of bits in an apicid from 8 to 32. By default, MP_processor_info() gets the APICID from the mpc_config_processor structure. However, this structure limits the size of APICID to 8 bits. This patch allows the caller of MP_processor_info() to optionally pass a larger APICID that will be used instead of the one in the mpc_config_processor struct. Signed-off-by: Jack Steiner <steiner@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
ae26186865
commit
a65d1d644c
5 changed files with 17 additions and 10 deletions
|
|
@ -133,7 +133,7 @@
|
|||
# define MAX_IO_APICS 64
|
||||
#else
|
||||
# define MAX_IO_APICS 128
|
||||
# define MAX_LOCAL_APIC 256
|
||||
# define MAX_LOCAL_APIC 32768
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
@ -406,6 +406,9 @@ struct local_apic {
|
|||
|
||||
#undef u32
|
||||
|
||||
#define BAD_APICID 0xFFu
|
||||
|
||||
#ifdef CONFIG_X86_32
|
||||
#define BAD_APICID 0xFFu
|
||||
#else
|
||||
#define BAD_APICID 0xFFFFu
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -47,9 +47,9 @@ extern void get_smp_config(void);
|
|||
|
||||
void __cpuinit generic_processor_info(int apicid, int version);
|
||||
#ifdef CONFIG_ACPI
|
||||
extern void mp_register_lapic(u8 id, u8 enabled);
|
||||
extern void mp_register_lapic(int id, u8 enabled);
|
||||
extern void mp_register_lapic_address(u64 address);
|
||||
extern void mp_register_ioapic(u8 id, u32 address, u32 gsi_base);
|
||||
extern void mp_register_ioapic(int id, u32 address, u32 gsi_base);
|
||||
extern void mp_override_legacy_irq(u8 bus_irq, u8 polarity, u8 trigger,
|
||||
u32 gsi);
|
||||
extern void mp_config_acpi_legacy_irqs(void);
|
||||
|
|
|
|||
Loading…
Reference in a new issue