Commit 610d10b1 authored by Olof Johansson's avatar Olof Johansson Committed by Linus Torvalds

[PATCH] ppc64: setup cpu_sibling_map on iSeries

Nathan Lynch pointed this out: The CPU sibling map is never initialized on
iSeries.  This makes the scheduler very unhappy if CONFIG_SCHED_SMT is
enabled, causing an oops in find_busiest_group during boot.

Below patch adds the expected init.
Signed-off-by: default avatarOlof Johansson <olof@austin.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 514f5157
......@@ -94,6 +94,7 @@ static int smp_iSeries_numProcs(void)
if (paca[i].lppaca.xDynProcStatus < 2) {
cpu_set(i, cpu_possible_map);
cpu_set(i, cpu_present_map);
cpu_set(i, cpu_sibling_map[i]);
++np;
}
}
......
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