kernel-hacking-2024-linux-s.../tools/power/x86
Len Brown e52966c084 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>
2012-11-27 00:03:06 -05:00
..
turbostat tools/power turbostat: prevent infinite loop on migration error path 2012-11-27 00:03:06 -05:00
x86_energy_perf_policy tools/power x86_energy_perf_policy: fix print of uninitialized string 2011-07-15 23:39:00 -04:00