diff options
| author | Paul E. McKenney <paulmck@kernel.org> | 2026-06-04 20:42:58 -0700 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@kernel.org> | 2026-08-14 14:59:20 -0700 |
| commit | f424566105c946ef42f2643230362598c06a29f1 (patch) | |
| tree | de2164e310071c83e75a087b8312d6fef9eae7a6 /scripts/patch-kernel | |
| parent | 5ac693414b51acb8c4b92813ca3ab4fc6686ddf9 (diff) | |
| download | linux-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
