diff options
author | Thomas Gleixner <[email protected]> | 2022-11-23 21:18:52 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2022-11-24 15:09:12 +0100 |
commit | 0cc04e80458a822300b93f82ed861a513edde194 (patch) | |
tree | bc7226610a24dfcb8889890c7acfda96299f59c0 /drivers/fpga/fpga-mgr.c | |
parent | 8553b5f2774a66b1f293b7d783934210afb8f23c (diff) |
timers: Add shutdown mechanism to the internal functions
Tearing down timers which have circular dependencies to other
functionality, e.g. workqueues, where the timer can schedule work and work
can arm timers, is not trivial.
In those cases it is desired to shutdown the timer in a way which prevents
rearming of the timer. The mechanism to do so is to set timer->function to
NULL and use this as an indicator for the timer arming functions to ignore
the (re)arm request.
Add a shutdown argument to the relevant internal functions which makes the
actual deactivation code set timer->function to NULL which in turn prevents
rearming of the timer.
Co-developed-by: Steven Rostedt <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Tested-by: Guenter Roeck <[email protected]>
Reviewed-by: Jacob Keller <[email protected]>
Reviewed-by: Anna-Maria Behnsen <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Link: https://lore.kernel.org/all/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions