scftorture: Allow zero weight to exclude an smp_call_function*() category
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 13 Jul 2021 21:12:54 +0000 (14:12 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 16 Sep 2021 17:25:16 +0000 (10:25 -0700)
commit2f611d044b8dcab245b6bbe5f691b6dce173ff56
treeadaa5e52dba3335233d496f3740feb5ea7a8154e
parent6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f
scftorture: Allow zero weight to exclude an smp_call_function*() category

This commit reworks the weighting calculations to allow zero to
be specified to disable a given weight.  For example, specifying the
scftorture.weight_resched=0 kernel boot parameter without specifying a
non-zero value for any of the other scftorture.weight_* parameters would
provide the default weights for the others, but would refrain from doing
any resched-based IPIs.

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