Commit d866dbf
committed
audio: base_fw: fix race condition in perf counters reset operation
Change the order of operations in the performance measurement initialization
sequence to avoid a race condition.
Previously, the performance counters were reset before setting the state to STOPPED,
which created a window where an LL task could preempt the execution
and record new measurements between these operations.
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>1 parent ba3e73f commit d866dbf
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
443 | 442 | | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| |||
0 commit comments