diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-07-29 03:37:10 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-31 17:20:32 -0400 |
commit | a677f58a8c8c541bf7d02c658545084040f3708d (patch) | |
tree | a5fff0d9b7ae09d792d648d235e95eda2f969552 | |
parent | e0a5a5d9b006fd441e61685a051fa85d52fb172c (diff) |
x86: print per_cpu data address
to make sure per_cpu data on correct node.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/setup_percpu.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c index f7745f94c006..61f3966632a8 100644 --- a/arch/x86/kernel/setup_percpu.c +++ b/arch/x86/kernel/setup_percpu.c | |||
@@ -180,9 +180,16 @@ void __init setup_per_cpu_areas(void) | |||
180 | printk(KERN_INFO | 180 | printk(KERN_INFO |
181 | "cpu %d has no node %d or node-local memory\n", | 181 | "cpu %d has no node %d or node-local memory\n", |
182 | cpu, node); | 182 | cpu, node); |
183 | if (ptr) | ||
184 | printk(KERN_DEBUG "per cpu data for cpu%d at %016lx\n", | ||
185 | cpu, __pa(ptr)); | ||
183 | } | 186 | } |
184 | else | 187 | else { |
185 | ptr = alloc_bootmem_pages_node(NODE_DATA(node), size); | 188 | ptr = alloc_bootmem_pages_node(NODE_DATA(node), size); |
189 | if (ptr) | ||
190 | printk(KERN_DEBUG "per cpu data for cpu%d on node%d at %016lx\n", | ||
191 | cpu, node, __pa(ptr)); | ||
192 | } | ||
186 | #endif | 193 | #endif |
187 | per_cpu_offset(cpu) = ptr - __per_cpu_start; | 194 | per_cpu_offset(cpu) = ptr - __per_cpu_start; |
188 | memcpy(ptr, __per_cpu_start, __per_cpu_end - __per_cpu_start); | 195 | memcpy(ptr, __per_cpu_start, __per_cpu_end - __per_cpu_start); |