OSDN Git Service

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)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 4 Oct 2018 13:00:30 +0000 (23:00 +1000)
commit8b78fdb045de60a4eb35460092bbd3cffa925353
tree88403ae001791860784b1757c87a7e16c354b1a6
parentf86ad3e0194b6964a058dc223ca80bf81b419cf0
powerpc/time: Use clockevents_register_device(), fixing an issue with large decrementer

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>
arch/powerpc/kernel/time.c