mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									a38c5380ef
								
							
						
					
					
						commit
						56d91f132c
					
				
					 3 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -145,6 +145,7 @@
 | 
			
		|||
 | 
			
		||||
#ifdef CONFIG_X86_32
 | 
			
		||||
# define MAX_IO_APICS 64
 | 
			
		||||
# define MAX_LOCAL_APIC 256
 | 
			
		||||
#else
 | 
			
		||||
# define MAX_IO_APICS 128
 | 
			
		||||
# define MAX_LOCAL_APIC 32768
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
#include <asm/mpspec_def.h>
 | 
			
		||||
#include <asm/x86_init.h>
 | 
			
		||||
 | 
			
		||||
extern int apic_version[MAX_APICS];
 | 
			
		||||
extern int apic_version[];
 | 
			
		||||
extern int pic_mode;
 | 
			
		||||
 | 
			
		||||
#ifdef CONFIG_X86_32
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1707,7 +1707,7 @@ void __init init_apic_mappings(void)
 | 
			
		|||
 * This initializes the IO-APIC and APIC hardware if this is
 | 
			
		||||
 * a UP kernel.
 | 
			
		||||
 */
 | 
			
		||||
int apic_version[MAX_APICS];
 | 
			
		||||
int apic_version[MAX_LOCAL_APIC];
 | 
			
		||||
 | 
			
		||||
int __init APIC_init_uniprocessor(void)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue