aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/powercap
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2020-09-30 20:58:15 -0400
committerLen Brown <len.brown@intel.com>2020-10-23 16:54:05 -0400
commit3d7772ea5602b88c7c7f0a50d512171a2eed6659 (patch)
tree1f51c47ba019658cad7401d8037490a5a0c6d3a5 /drivers/powercap
parenttools/power turbostat: adjust for temperature offset (diff)
downloadlinux-dev-3d7772ea5602b88c7c7f0a50d512171a2eed6659.tar.xz
linux-dev-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 'drivers/powercap')
0 files changed, 0 insertions, 0 deletions