When there are more timing_stop() calls then timing_start(), the reference counter will go negative, resulting in the next timing_start() call not starting the timer. Without timer running, getting cycles elasped would not work. So fix the ref counting so it won't dip below zero. Fixes #30397 Signed-off-by: Daniel Leung <daniel.leung@intel.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| timing.c | ||