Commit a04a8935 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix for NUMA kernel on non NUMA machine

From: Anton Blanchard <anton@samba.org>

Set node 0 online, otherwise the recent cpu/memory topology stuff will oops
on a non NUMA machine.
parent 87ca4494
......@@ -210,6 +210,8 @@ static void __init setup_nonnuma(void)
for (i = 0; i < NR_CPUS; i++)
map_cpu_to_node(i, 0);
node_set_online(0);
node_data[0].node_start_pfn = 0;
node_data[0].node_spanned_pages = lmb_end_of_DRAM() / PAGE_SIZE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment