diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2014-05-23 04:15:26 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-05-27 23:35:35 -0400 |
commit | 8d6f7c5aa3db6f3e5e43d09f8a0166c7d96f33f3 (patch) | |
tree | abde7ff85f8eb47d7c028228101c0fd3880bb0fa /arch/powerpc/platforms | |
parent | 441c19c8a290f5f1e1b263691641124c84232b6e (diff) |
powerpc/powernv: Make it possible to skip the IRQHAPPENED check in power7_nap()
To support split core we need to be able to force all secondaries into
nap, so the core can detect they are idle and do an unsplit.
Currently power7_nap() will return without napping if there is an irq
pending. We want to ignore the pending irq and nap anyway, we will deal
with the interrupt later.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/powernv/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/smp.c b/arch/powerpc/platforms/powernv/smp.c index 1601a1ea02c4..65faf998fe2c 100644 --- a/arch/powerpc/platforms/powernv/smp.c +++ b/arch/powerpc/platforms/powernv/smp.c | |||
@@ -159,7 +159,7 @@ static void pnv_smp_cpu_kill_self(void) | |||
159 | mtspr(SPRN_LPCR, mfspr(SPRN_LPCR) & ~(u64)LPCR_PECE1); | 159 | mtspr(SPRN_LPCR, mfspr(SPRN_LPCR) & ~(u64)LPCR_PECE1); |
160 | while (!generic_check_cpu_restart(cpu)) { | 160 | while (!generic_check_cpu_restart(cpu)) { |
161 | ppc64_runlatch_off(); | 161 | ppc64_runlatch_off(); |
162 | power7_nap(); | 162 | power7_nap(1); |
163 | ppc64_runlatch_on(); | 163 | ppc64_runlatch_on(); |
164 | if (!generic_check_cpu_restart(cpu)) { | 164 | if (!generic_check_cpu_restart(cpu)) { |
165 | DBG("CPU%d Unexpected exit while offline !\n", cpu); | 165 | DBG("CPU%d Unexpected exit while offline !\n", cpu); |