aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2022-04-23 00:14:46 +1000
committerThomas Gleixner <tglx@linutronix.de>2022-04-25 14:45:22 +0200
commit62c1256d544747b38e77ca9b5bfe3a26f9592576 (patch)
tree76b7ac3839b9382128b1a0b69eee7f527d95c77b /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
parentce8abf340e40e1126bfcb9e7679b3d6b524ae3e0 (diff)
timers/nohz: Switch to ONESHOT_STOPPED in the low-res handler when the tick is stopped
When tick_nohz_stop_tick() stops the tick and high resolution timers are disabled, then the clock event device is not put into ONESHOT_STOPPED mode. This can lead to spurious timer interrupts with some clock event device drivers that don't shut down entirely after firing. Eliminate these by putting the device into ONESHOT_STOPPED mode at points where it is not being reprogrammed. When there are no timers active, then tick_program_event() with KTIME_MAX can be used to stop the device. When there is a timer active, the device can be stopped at the next tick (any new timer added by timers will reprogram the tick). Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20220422141446.915024-1-npiggin@gmail.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions