Commit 4928be8a authored by Joel Schopp's avatar Joel Schopp Committed by Linus Torvalds

[PATCH] ppc64 SMT bugfix

This patch is fairly straightforward.  maxcpus should be per SMT thread and
not per physical processor.  SUSE picked this up back in May (was discussed
on ppc64 mailing list) and has had no trouble with it.
Signed-off-by: default avatarJoel Schopp <jschopp@austin.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 53ca8854
......@@ -426,7 +426,11 @@ static inline void look_for_more_cpus(void)
}
maxcpus = ireg[num_addr_cell + num_size_cell];
/* DRENG need to account for threads here too */
/* Double maxcpus for processors which have SMT capability */
if (cur_cpu_spec->cpu_features & CPU_FTR_SMT)
maxcpus *= 2;
if (maxcpus > NR_CPUS) {
printk(KERN_WARNING
......
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