diff options
| author | Nam Cao <[email protected]> | 2024-10-31 15:14:23 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2024-11-07 01:47:05 +0000 |
| commit | 8f02e3563bb5824eb01c94f2c75f1dcee2d05625 (patch) | |
| tree | d6b768aa48331dfef44970ae367fc21f30d0c384 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | hrtimers: Introduce hrtimer_setup_sleeper_on_stack() (diff) | |
| download | kernel-8f02e3563bb5824eb01c94f2c75f1dcee2d05625.tar.gz kernel-8f02e3563bb5824eb01c94f2c75f1dcee2d05625.zip | |
hrtimers: Introduce hrtimer_update_function()
Some users of hrtimer need to change the callback function after the
initial setup. They write to hrtimer::function directly.
That's not safe under all circumstances as the write is lockless and a
concurrent timer expiry might end up using the wrong function pointer.
Introduce hrtimer_update_function(), which also performs runtime checks
whether it is safe to modify the callback.
This allows to make hrtimer::function private once all users are converted.
Signed-off-by: Nam Cao <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/all/20a937b0ae09ad54b5b6d86eabead7c570f1b72e.1730386209.git.namcao@linutronix.de
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
