summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2026-06-04 20:42:58 -0700
committerPaul E. McKenney <paulmck@kernel.org>2026-08-14 14:59:20 -0700
commitf424566105c946ef42f2643230362598c06a29f1 (patch)
treede2164e310071c83e75a087b8312d6fef9eae7a6 /scripts/patch-kernel
parent5ac693414b51acb8c4b92813ca3ab4fc6686ddf9 (diff)
downloadlinux-f424566105c946ef42f2643230362598c06a29f1.tar.gz
linux-f424566105c946ef42f2643230362598c06a29f1.zip
rcutorture: Use cpumask_next_wrap() in rcu_torture_preempt()
The rcu_torture_preempt() function uses cpumask_next(), and if that returns an out-of-bounds result, re-invokes cpumask_next() on -1. Which is exactly what cpumask_next_wrap() does. This commit therefore saves a couple of lines by instead using cpumask_next_wrap(). This was reported by metacode when asked to look for opportunities to use cpumask_next_wrap() in kernel/rcu. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions