summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2020-10-01 02:58:15 +0200
committerLen Brown <len.brown@intel.com>2020-10-23 22:54:05 +0200
commit3d7772ea5602b88c7c7f0a50d512171a2eed6659 (patch)
tree1f51c47ba019658cad7401d8037490a5a0c6d3a5 /ipc
parenttools/power turbostat: adjust for temperature offset (diff)
downloadlinux-3d7772ea5602b88c7c7f0a50d512171a2eed6659.tar.xz
linux-3d7772ea5602b88c7c7f0a50d512171a2eed6659.zip
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: Len Brown <len.brown@intel.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions