refscale: Add a "jiffies" test
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 12 Jul 2023 01:01:38 +0000 (18:01 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 14 Jul 2023 22:01:04 +0000 (15:01 -0700)
commitb5a2801fc05350b3b81e6fdcefddd6cfdbf8b238
treed68113f1971aff396bf9875c4be5757ed2519a33
parentf5063e8948dad7f31adb007284a5d5038ae31bb8
refscale: Add a "jiffies" test

This commit adds a "jiffies" test to refscale, allowing use of jiffies
to be compared to ktime_get_real_fast_ns().  On my x86 laptop, jiffies
is more than 20x faster.  (Though for many uses, the tens-of-nanoseconds
overhead of ktime_get_real_fast_ns() will be just fine.)

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