]> git.karo-electronics.de Git - linux-beck.git/commit
powerpc/powernv: Always go into nap mode when CPU is offline
authorPaul Mackerras <paulus@samba.org>
Thu, 26 Jul 2012 18:51:09 +0000 (18:51 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 5 Sep 2012 06:05:20 +0000 (16:05 +1000)
commit375f561a4131a0f501c8845a2a20f2ca1abc8f7a
tree089fd2d4fa24debbec39f7a63c32a495c17a7382
parentdabe859ec6360a12e71f39bf695d174e19ff2688
powerpc/powernv: Always go into nap mode when CPU is offline

The CPU hotplug code for the powernv platform currently only puts
offline CPUs into nap mode if the powersave_nap variable is set.
However, HV-style KVM on this platform requires secondary CPU threads
to be offline and in nap mode.  Since we know nap mode works just
fine on all POWER7 machines, and the only machines that support the
powernv platform are POWER7 machines, this changes the code to
always put offline CPUs into nap mode, regardless of powersave_nap.
Powersave_nap still controls whether or not CPUs go into nap mode
when idle, as before.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/processor.h
arch/powerpc/kernel/idle_power7.S
arch/powerpc/platforms/powernv/smp.c