]> git.baikalelectronics.ru Git - kernel.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)
commitd74ca749575c5ce5772acd4702d09285458124d9
tree089fd2d4fa24debbec39f7a63c32a495c17a7382
parente8d5762aa43aa91865b531ab7e92892b3b4182f4
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