Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a677f58a authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar
Browse files

x86: print per_cpu data address



to make sure per_cpu data on correct node.

Signed-off-by: default avatarYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent e0a5a5d9
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -180,9 +180,16 @@ void __init setup_per_cpu_areas(void)
			printk(KERN_INFO
			       "cpu %d has no node %d or node-local memory\n",
				cpu, node);
			if (ptr)
				printk(KERN_DEBUG "per cpu data for cpu%d at %016lx\n",
					 cpu, __pa(ptr));
		}
		else
		else {
			ptr = alloc_bootmem_pages_node(NODE_DATA(node), size);
			if (ptr)
				printk(KERN_DEBUG "per cpu data for cpu%d on node%d at %016lx\n",
					 cpu, node, __pa(ptr));
		}
#endif
		per_cpu_offset(cpu) = ptr - __per_cpu_start;
		memcpy(ptr, __per_cpu_start, __per_cpu_end - __per_cpu_start);