From: Milton Miller Date: Mon, 20 Oct 2008 15:37:03 +0000 (+0000) Subject: powerpc: Use cpu_thread_in_core in smp_init for of_spin_map X-Git-Tag: v2.6.27.9~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec9ea180923639380683ebb52d135bc01959f2b1;p=pandora-kernel.git powerpc: Use cpu_thread_in_core in smp_init for of_spin_map commit 6a75a6b8e85e92cc774d42a4e113c76c30b5a539 upstream. We used to assume that even numbered threads were the primary threads, ie those that would be listed and started as a cpu from open firmware. Replace a left over is even (% 2) check with a check for it being a primary thread and update the comments. Tested with a debug print on pseries, identical code found for cell. Signed-off-by: Milton Miller Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed