]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rcu: Simplify rcu_do_batch() by applying clamp()
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 8 May 2026 17:43:51 +0000 (10:43 -0700)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Sun, 24 May 2026 07:39:52 +0000 (09:39 +0200)
commit5f136351edd37d779e45704d573f5b6d6cab1e6e
tree12b2bba66278123302911a7733dfa593074351aa
parent012c889690edc14d724a5880b4d0fe01c1fbb488
rcu: Simplify rcu_do_batch() by applying clamp()

This commit replaces a nested ?: sequence with clamp().  This does not
reduce the number of lines of code, but it does simplify the line that
it modifies.

Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
kernel/rcu/tree.c