[PATCH] [PPC64] Setup cpu_sibling_map on iSeries

Olof Johansson olof at austin.ibm.com
Fri Oct 29 04:44:47 EST 2004


Hi,

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. Please apply.


Signed-off-by: Olof Johansson <olof at austin.ibm.com>

---

 linux-2.5-olof/arch/ppc64/kernel/iSeries_smp.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN arch/ppc64/kernel/iSeries_smp.c~iseries-sibling-map arch/ppc64/kernel/iSeries_smp.c
--- linux-2.5/arch/ppc64/kernel/iSeries_smp.c~iseries-sibling-map	2004-10-28 13:24:03.063642740 -0500
+++ linux-2.5-olof/arch/ppc64/kernel/iSeries_smp.c	2004-10-28 13:28:06.592330464 -0500
@@ -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;
                 }
         }

_



More information about the Linuxppc64-dev mailing list