]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kvm: Remove redundant save of SIER AND MMCR2
authorJoel Stanley <joel@jms.id.au>
Tue, 8 Jul 2014 06:38:20 +0000 (16:08 +0930)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Jul 2014 02:55:07 +0000 (12:55 +1000)
commitd1ff71fb4a97bf9ebf003530c42afbae9940864c
treef8a4f75ad45cfd8d6efe97bf7d17c6ae1554fee5
parent4c7fbd195c1fe12849712c92a05d4b12e47cda33
powerpc/kvm: Remove redundant save of SIER AND MMCR2

These two registers are already saved in the block above. Aside from
being unnecessary, by the time we get down to the second save location
r8 no longer contains MMCR2, so we are clobbering the saved value with
PMC5.

MMCR2 primarily consists of counter freeze bits. So restoring the value
of PMC5 into MMCR2 will most likely have the effect of freezing
counters.

Fixes: 9a63fab0c957 ("KVM: PPC: Book3S HV: Save/restore host PMU registers that are new in POWER8")
Cc: stable@vger.kernel.org
Signed-off-by: Joel Stanley <joel@jms.id.au>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Paul Mackerras <paulus@samba.org>
Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kvm/book3s_hv_interrupts.S