When pmc_process_interrupt() returns an error (such as a full sample
ring buffer), pmc_soft_intr() calls soft_stop_pmc() to stop the row.
Later, pmc_stop() calls soft_stop_pmc() again because it does not
check pps_stalled. That second stop subtracts from ps->ps_running
twice for one start.
Add a per-CPU, per-row soft_running flag and update it with
atomic_cmpset_int(). Increment ps->ps_running in soft_start_pmc()
only on a 0 to 1 transition, and decrement it in soft_stop_pmc()
only on a 1 to 0 transition.
MFC after: 1 week
Sponsored by: Advanced Micro Devices, Inc.
Signed-off-by: Andre Silva <andasilv@amd.com>