]> git.ipfire.org Git - thirdparty/linux.git/commit
hrtimer: Add a helper to retrieve a hrtimer from its timerqueue node
authorThomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
Wed, 11 Mar 2026 10:15:21 +0000 (11:15 +0100)
committerThomas Gleixner <tglx@kernel.org>
Thu, 12 Mar 2026 11:15:56 +0000 (12:15 +0100)
commit88c316ff7694ddf55d5a0fe42602ae83bee560aa
tree608e4fa934284debfe3f0c181929b3b6c38303f3
parentf27fc117cf8fba56e0619694e685f9bca9b9cb82
hrtimer: Add a helper to retrieve a hrtimer from its timerqueue node

The container_of() call is open-coded multiple times.

Add a helper macro.

Use container_of_const() to preserve constness.

Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260311-hrtimer-cleanups-v1-12-095357392669@linutronix.de
kernel/time/hrtimer.c