mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
scftorture: Adapt memory-ordering test to UP operation
On uniprocessor systems, smp_call_function() does nothing. This commit therefore avoids complaining about the lack of handler accesses in the single-CPU case where there is no handler. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
a7c072ef26
commit
9e66bf03f9
1 changed files with 2 additions and 1 deletions
|
@ -363,7 +363,8 @@ static void scftorture_invoke_one(struct scf_statistics *scfp, struct torture_ra
|
||||||
scfcp->scfc_out = true;
|
scfcp->scfc_out = true;
|
||||||
}
|
}
|
||||||
if (scfcp && scfsp->scfs_wait) {
|
if (scfcp && scfsp->scfs_wait) {
|
||||||
if (WARN_ON_ONCE(!scfcp->scfc_out))
|
if (WARN_ON_ONCE((num_online_cpus() > 1 || scfsp->scfs_prim == SCF_PRIM_SINGLE) &&
|
||||||
|
!scfcp->scfc_out))
|
||||||
atomic_inc(&n_mb_out_errs); // Leak rather than trash!
|
atomic_inc(&n_mb_out_errs); // Leak rather than trash!
|
||||||
else
|
else
|
||||||
kfree(scfcp);
|
kfree(scfcp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue