[PATCH] ppc64 cpu hotplug and SMT
jschopp at austin.ibm.com
jschopp at austin.ibm.com
Thu May 6 08:10:58 EST 2004
With SMT we need to reserve possible cpu slots for each SMT thread and not
just for each cpu. The patch below fixes that. If there are no
objections please put into ameslab and send upstream.
--- ameslab-current/arch/ppc64/kernel/smp.c 2004-05-05 15:37:08.000000000 -0500
+++ new/arch/ppc64/kernel/smp.c 2004-05-05 15:37:49.000000000 -0500
@@ -463,6 +463,9 @@ static inline void look_for_more_cpus(vo
maxcpus);
/* Make those cpus (which might appear later) possible too. */
+ if ((naca->smt_state == SMT_ON) || (naca->smt_state == SMT_DYNAMIC)) {
+ maxcpus *= 2;
+ }
for (i = 0; i < maxcpus; i++)
cpu_set(i, cpu_possible_map);
}
** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc64-dev
mailing list