diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/Kconfig.debug | 12 | ||||
-rw-r--r-- | arch/x86/mm/numa_64.c | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index 88420af98140..0a82b889d76e 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug | |||
@@ -47,6 +47,18 @@ config DEBUG_PAGEALLOC | |||
47 | This results in a large slowdown, but helps to find certain types | 47 | This results in a large slowdown, but helps to find certain types |
48 | of memory corruptions. | 48 | of memory corruptions. |
49 | 49 | ||
50 | config DEBUG_PER_CPU_MAPS | ||
51 | bool "Debug access to per_cpu maps" | ||
52 | depends on DEBUG_KERNEL | ||
53 | depends on X86_64_SMP | ||
54 | default n | ||
55 | help | ||
56 | Say Y to verify that the per_cpu map being accessed has | ||
57 | been setup. Adds a fair amount of code to kernel memory | ||
58 | and decreases performance. | ||
59 | |||
60 | Say N if unsure. | ||
61 | |||
50 | config DEBUG_RODATA | 62 | config DEBUG_RODATA |
51 | bool "Write protect kernel read-only data structures" | 63 | bool "Write protect kernel read-only data structures" |
52 | depends on DEBUG_KERNEL | 64 | depends on DEBUG_KERNEL |
diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c index 5d24dc1ec237..e157cb274b25 100644 --- a/arch/x86/mm/numa_64.c +++ b/arch/x86/mm/numa_64.c | |||
@@ -37,6 +37,9 @@ u16 x86_cpu_to_node_map_init[NR_CPUS] = { | |||
37 | void *x86_cpu_to_node_map_early_ptr; | 37 | void *x86_cpu_to_node_map_early_ptr; |
38 | DEFINE_PER_CPU(u16, x86_cpu_to_node_map) = NUMA_NO_NODE; | 38 | DEFINE_PER_CPU(u16, x86_cpu_to_node_map) = NUMA_NO_NODE; |
39 | EXPORT_PER_CPU_SYMBOL(x86_cpu_to_node_map); | 39 | EXPORT_PER_CPU_SYMBOL(x86_cpu_to_node_map); |
40 | #ifdef CONFIG_DEBUG_PER_CPU_MAPS | ||
41 | EXPORT_SYMBOL(x86_cpu_to_node_map_early_ptr); | ||
42 | #endif | ||
40 | 43 | ||
41 | u16 apicid_to_node[MAX_LOCAL_APIC] __cpuinitdata = { | 44 | u16 apicid_to_node[MAX_LOCAL_APIC] __cpuinitdata = { |
42 | [0 ... MAX_LOCAL_APIC-1] = NUMA_NO_NODE | 45 | [0 ... MAX_LOCAL_APIC-1] = NUMA_NO_NODE |