]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hrtimers: Make hrtimer_update_function() less expensive
authorThomas Gleixner <tglx@linutronix.de>
Fri, 7 Feb 2025 21:16:09 +0000 (22:16 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 10 Feb 2025 19:51:12 +0000 (20:51 +0100)
commit2ea97b76d6712bfb0408e5b81ffd7bc4551d3153
tree6cfb9fbd925c6c3b2a61a3b55234b08eaa01c5d5
parenta64dcfb451e254085a7daee5fe51bf22959d52d3
hrtimers: Make hrtimer_update_function() less expensive

The sanity checks in hrtimer_update_function() are expensive for high
frequency usage like in the io/uring code due to locking.

Hide the sanity checks behind CONFIG_PROVE_LOCKING, which has a decent
chance to be enabled on a regular basis for testing.

Fixes: 8f02e3563bb5 ("hrtimers: Introduce hrtimer_update_function()")
Reported-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/87ikpllali.ffs@tglx
include/linux/hrtimer.h