While creating riscv SBI HSM tests a couple strange on-cpus behaviors were observed. Fix 'em. v2: - Added patch for barrier after func() [Alex] - Improved commit message for patch1 [Alex] Andrew Jones (3): lib/on-cpus: Correct and simplify synchronization lib/on-cpus: Add barrier after func call lib/on-cpus: Fix on_cpumask lib/cpumask.h | 14 +++++++++++++ lib/on-cpus.c | 56 ++++++++++++++++++++------------------------------- 2 files changed, 36 insertions(+), 34 deletions(-) -- 2.47.0