Skip to content
Commit 3d7772ea authored by Len Brown's avatar Len Brown
Browse files

tools/power turbostat: harden against cpu hotplug



turbostat tends to get confused when CPUs are added and removed
while it is running.

There are races, such as checking the current cpu, and then
reading a sysfs file that depends on that cpu number.

Close the two issues that seem to come up the most.
First, there is an infinite reset loop detector --
change that to allow more resets before giving up.
Secondly, one of those file reads didn't really need
to exit the program on failure...

Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 6ff7cb37
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment