mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:38:03 +00:00
scftorture: Avoid additional div operation.
Replace "scfp->cpu % nr_cpu_ids" with "cpu". This has been computed earlier. Tested-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Tested-by: Boqun Feng <boqun.feng@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
9852d85ec9
commit
42eeb3b573
@ -463,7 +463,7 @@ static int scftorture_invoker(void *arg)
|
||||
|
||||
// Make sure that the CPU is affinitized appropriately during testing.
|
||||
curcpu = raw_smp_processor_id();
|
||||
WARN_ONCE(curcpu != scfp->cpu % nr_cpu_ids,
|
||||
WARN_ONCE(curcpu != cpu,
|
||||
"%s: Wanted CPU %d, running on %d, nr_cpu_ids = %d\n",
|
||||
__func__, scfp->cpu, curcpu, nr_cpu_ids);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user