posix-timers: Split release_posix_timers()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 25 Apr 2023 18:49:09 +0000 (20:49 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 18 Jun 2023 20:41:50 +0000 (22:41 +0200)
commit8cc96ca2c75f6da59de41321797c87562703c9e1
tree0a277ac81d052cd1c8b04918abae3be15d9209c4
parent11fbe6cd41210c7b5173257158a22e11e225622d
posix-timers: Split release_posix_timers()

release_posix_timers() is called for cleaning up both hashed and unhashed
timers. The cases are differentiated by an argument and the usage is
hideous.

Seperate the actual free path out and use it for unhashed timers. Provide a
function for hashed timers.

No functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20230425183313.301432503@linutronix.de
kernel/time/posix-timers.c