powerpc/time: Use clockevents_register_device(), fixing an issue with large decrementer
authorAnton Blanchard <anton@ozlabs.org>
Mon, 1 Oct 2018 23:01:04 +0000 (09:01 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:20:09 +0000 (08:20 +0100)
commit9e4649e443e24fecfc5521f6452a0a4184488d30
tree07a572edeca59da15b8bdc32377ce8ec4633be3b
parentd7e546d06182165ceb5c5c1d8ef54f2c02ee75cd
powerpc/time: Use clockevents_register_device(), fixing an issue with large decrementer

[ Upstream commit 8b78fdb045de60a4eb35460092bbd3cffa925353 ]

We currently cap the decrementer clockevent at 4 seconds, even on systems
with large decrementer support. Fix this by converting the code to use
clockevents_register_device() which calculates the upper bound based on
the max_delta passed in.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kernel/time.c