diff options
author | Anton Blanchard <anton@ozlabs.org> | 2018-10-02 09:01:05 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-10-04 23:00:31 +1000 |
commit | 817593604e5b244dc55344d298d96122457c20bd (patch) | |
tree | 3eef8b709b42a878faceade92ab08390602f345e /arch/powerpc/mm | |
parent | 8b78fdb045de60a4eb35460092bbd3cffa925353 (diff) | |
download | linux-817593604e5b244dc55344d298d96122457c20bd.tar.gz linux-817593604e5b244dc55344d298d96122457c20bd.tar.bz2 linux-817593604e5b244dc55344d298d96122457c20bd.zip |
powerpc/time: Add set_state_oneshot_stopped decrementer callback
If CONFIG_PPC_WATCHDOG is enabled we always cap the decrementer to
0x7fffffff:
if (IS_ENABLED(CONFIG_PPC_WATCHDOG))
set_dec(0x7fffffff);
else
set_dec(decrementer_max);
If there are no future events, we don't reprogram the decrementer
after this and we end up with 0x7fffffff even on a large decrementer
capable system.
As suggested by Nick, add a set_state_oneshot_stopped callback
so we program the decrementer with decrementer_max if there are
no future events.
Signed-off-by: Anton Blanchard <anton@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm')
0 files changed, 0 insertions, 0 deletions