iotdk: cpu_stats function doesn't work as expected #27771
Labels
area: ARC
ARC Architecture
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
cpu_stats profiling function doesn’t work as expected, it always report cpu usage 100 even if cpu in idle thread for a long time. It looks like the cpu_stats hooks does not have a chance to count the switch in of idle thread (stats_hw_tick.idle always 0).
It always report cpu usage 100%, and global variable stats_hw_tick.idle is 0, but I confirmed cpu can enter idle
To Reproduce
Expected behavior
When system idle, the cpu usage reported should not be always 100%
My expectation
Impact
Wrong cpu_stats function execution on the arc board.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: