Searched hist:e52966c0 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/power/x86/turbostat/ |
H A D | turbostat.c | e52966c0 Thu Nov 08 21:38:05 CST 2012 Len Brown <len.brown@intel.com> tools/power turbostat: prevent infinite loop on migration error path
Turbostat assumed if it can't migrate to a CPU, then the CPU must have gone off-line and turbostat should re-initialize with the new topology.
But if turbostat can not migrate because it is restricted by a cpuset, then it will fail to migrate even after re-initialization, resulting in an infinite loop.
Spit out a warning when we can't migrate and endure only 2 re-initialize cycles in a row before giving up and exiting.
Signed-off-by: Len Brown <len.brown@intel.com>
|