timers: Get rid of del_singleshot_timer_sync()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 23 Nov 2022 20:18:37 +0000 (21:18 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 24 Nov 2022 14:09:10 +0000 (15:09 +0100)
commit9a5a305686971f4be10c6d7251c8348d74b3e014
tree92f42887a399d5728b85adf2505c54f0762e7ec1
parent6e1fc2591f116dfb20b65cf27356475461d61bd8
timers: Get rid of del_singleshot_timer_sync()

del_singleshot_timer_sync() used to be an optimization for deleting timers
which are not rearmed from the timer callback function.

This optimization turned out to be broken and got mapped to
del_timer_sync() about 17 years ago.

Get rid of the undocumented indirection and use del_timer_sync() directly.

No functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Link: https://lore.kernel.org/r/20221123201624.706987932@linutronix.de
drivers/char/tpm/tpm-dev-common.c
drivers/staging/wlan-ng/hfa384x_usb.c
drivers/staging/wlan-ng/prism2usb.c
include/linux/timer.h
kernel/time/timer.c
net/sunrpc/xprt.c