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:23:05 +0000 (08:23 +0100)
commit991d57ecd8bc0db05186a4ecb2341748b1b7e97e
tree704d30089e42ee34a8d2d5c452936599a7d0719c
parentb0cf701d8713986a354bd43f8f85808a65f2957c
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