]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
refscale: Add this_cpu_inc() readers
authorPaul E. McKenney <paulmck@kernel.org>
Sun, 2 Nov 2025 22:49:45 +0000 (14:49 -0800)
committerFrederic Weisbecker <frederic@kernel.org>
Fri, 7 Nov 2025 13:37:17 +0000 (14:37 +0100)
commitbdba8330ad705ae0e08150892fb1e2de48406630
tree23e253cea532ec9ec9ed641d714322765e6835d4
parent057df3eaca289365e28f413d1f30c63819719076
refscale: Add this_cpu_inc() readers

This commit adds refscale readers based on this_cpu_inc() and
this_cpu_inc() ("refscale.scale_type=percpuinc").  On my x86 laptop,
these are about 4.5ns per pair.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
kernel/rcu/refscale.c