]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Avoid spurious PMU interrupts after idle
authorNicholas Piggin <npiggin@gmail.com>
Mon, 10 Jul 2017 06:19:38 +0000 (16:19 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 18 Jul 2017 01:45:47 +0000 (11:45 +1000)
commita9f14f396deffdebe4c979d4803f06c02ca3173e
tree0d25f21a5c4d5f3a3592de7e82249422065fed92
parent9dbf0cca7f003037036fce69bd450d1a46707f3d
powerpc/perf: Avoid spurious PMU interrupts after idle

POWER9 DD2 can see spurious PMU interrupts after state-loss idle in
some conditions.

A solution is to save and reload MMCR0 over state-loss idle.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Tested-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/idle_book3s.S