Files
android_kernel_xiaomi_sm8450/arch/powerpc/kernel
Anton Blanchard 33ad5e4b6c 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 <anton@samba.org>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2010-07-08 18:11:42 +10:00
..
2007-05-11 05:38:25 -04:00
2010-03-05 03:04:08 -06:00
2010-05-05 09:11:10 -04:00
2010-05-17 12:18:52 +03:00
2010-03-09 11:52:52 +11:00
2009-07-12 12:22:34 -07:00
2010-03-12 15:52:32 -08:00
2007-10-11 14:36:47 +10:00
2010-05-31 10:01:50 +10:00