powerpc/time: Fix clockevent_decrementer initalisation for PR KVM
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 17 Oct 2018 12:39:41 +0000 (23:39 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 19 Oct 2018 04:09:04 +0000 (15:09 +1100)
commitb4d16ab58c41ff0125822464bdff074cebd0fe47
tree7db5b7b66ed3375723eb5647ada4f91b94f3fd5d
parent6ce7bff045f6a0eaa94c63617d73ad0bc66ce40c
powerpc/time: Fix clockevent_decrementer initalisation for PR KVM

In the recent commit 8b78fdb045de ("powerpc/time: Use
clockevents_register_device(), fixing an issue with large
decrementer") we changed the way we initialise the decrementer
clockevent(s).

We no longer initialise the mult & shift values of
decrementer_clockevent itself.

This has the effect of breaking PR KVM, because it uses those values
in kvmppc_emulate_dec(). The symptom is guest kernels spin forever
mid-way through boot.

For now fix it by assigning back to decrementer_clockevent the mult
and shift values.

Fixes: 8b78fdb045de ("powerpc/time: Use clockevents_register_device(), fixing an issue with large decrementer")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/time.c