diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-12-16 22:09:24 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-12-23 16:15:53 -0500 |
commit | 56d91f132c9be66e98cce1b1e77a28027048bb26 (patch) | |
tree | 4346a55e9aaa80c0a90a6fdd9d50954b3914e09f /arch/x86/kernel/apic/apic.c | |
parent | a38c5380ef9f088be9f49b6e4c5d80af8b1b5cd4 (diff) |
x86, acpi: Add MAX_LOCAL_APIC for 32bit
We should use MAX_LOCAL_APIC for max apic ids and MAX_APICS as number
of local apics.
Also apic_version[] array should use MAX_LOCAL_APICs.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <4D0AD464.2020408@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/apic/apic.c')
-rw-r--r-- | arch/x86/kernel/apic/apic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 463839645f9b..0d5d07f2253e 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c | |||
@@ -1707,7 +1707,7 @@ void __init init_apic_mappings(void) | |||
1707 | * This initializes the IO-APIC and APIC hardware if this is | 1707 | * This initializes the IO-APIC and APIC hardware if this is |
1708 | * a UP kernel. | 1708 | * a UP kernel. |
1709 | */ | 1709 | */ |
1710 | int apic_version[MAX_APICS]; | 1710 | int apic_version[MAX_LOCAL_APIC]; |
1711 | 1711 | ||
1712 | int __init APIC_init_uniprocessor(void) | 1712 | int __init APIC_init_uniprocessor(void) |
1713 | { | 1713 | { |