From: Anton Blanchard Date: Thu, 17 Jun 2010 14:33:06 +0000 (+0000) Subject: powerpc: Linux cannot run with 0 cores X-Git-Tag: v2.6.35-rc5~12^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33ad5e4b6cab3ad8cf3afda49b66393f1833150e;p=pandora-kernel.git powerpc: Linux cannot run with 0 cores If we configure with CONFIG_SMP=n or set NR_CPUS less than the number of SMT threads we will set the max cores property to 0 in the ibm,client-architecture-support structure. On new versions of firmware that understand this property it obliges and terminates our partition. Use DIV_ROUND_UP so we handle not only the CONFIG_SMP=n case but also the case where NR_CPUS isn't a multiple of the number of SMT threads. Signed-off-by: Anton Blanchard Acked-by: Paul E. McKenney Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed