x86: Drop x86_32 MAX_APICID
authorTejun Heo <tj@kernel.org>
Sun, 23 Jan 2011 13:37:28 +0000 (14:37 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 28 Jan 2011 13:54:04 +0000 (14:54 +0100)
Commit 56d91f13 (x86, acpi: Add MAX_LOCAL_APIC for 32bit) added
MAX_LOCAL_APIC for x86_32 but didn't replace MAX_APICID users
with it. Convert MAX_APICID users to MAX_LOCAL_APIC and drop
MAX_APICID.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Cc: eric.dumazet@gmail.com
Cc: yinghai@kernel.org
Cc: brgerst@gmail.com
Cc: gorcunov@gmail.com
Cc: shaohui.zheng@intel.com
Cc: rientjes@google.com
LKML-Reference: <1295789862-25482-3-git-send-email-tj@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/mpspec.h
arch/x86/kernel/smpboot.c
arch/x86/mm/srat_32.c

index 0c90dd9f05053c83591df6e04ec5d7979fee779f..edc2a455b726ee553ee84c91201fa4b1f9ba3aa8 100644 (file)
@@ -33,8 +33,6 @@ extern int mp_bus_id_to_local[MAX_MP_BUSSES];
 extern int quad_local_to_mp_bus_id [NR_CPUS/4][4];
 #endif
 
-#define MAX_APICID             256
-
 #else /* CONFIG_X86_64: */
 
 #define MAX_MP_BUSSES          256
index ee9203a17d6712e572fe476eeaefaf24be9cbdb9..53a85baaecca02187926b11f60310b50657855ad 100644 (file)
@@ -72,7 +72,7 @@
 #include <asm/i8259.h>
 
 #ifdef CONFIG_X86_32
-u8 apicid_2_node[MAX_APICID];
+u8 apicid_2_node[MAX_LOCAL_APIC];
 #endif
 
 /* State of each CPU */
index ae96e7b8051d0c46e786e0ef80581ae331c3f01a..6027a48100036c756142a2ff4af116097eb0a350 100644 (file)
@@ -57,7 +57,7 @@ struct node_memory_chunk_s {
 static struct node_memory_chunk_s __initdata node_memory_chunk[MAXCHUNKS];
 
 static int __initdata num_memory_chunks; /* total number of memory chunks */
-static u8 __initdata apicid_to_pxm[MAX_APICID];
+static u8 __initdata apicid_to_pxm[MAX_LOCAL_APIC];
 
 int acpi_numa __initdata;
 
@@ -254,7 +254,7 @@ int __init get_memcfg_from_srat(void)
        printk(KERN_DEBUG "Number of memory chunks in system = %d\n",
                         num_memory_chunks);
 
-       for (i = 0; i < MAX_APICID; i++)
+       for (i = 0; i < MAX_LOCAL_APIC; i++)
                apicid_2_node[i] = pxm_to_node(apicid_to_pxm[i]);
 
        for (j = 0; j < num_memory_chunks; j++){
This page took 0.027365 seconds and 5 git commands to generate.