summaryrefslogtreecommitdiff
path: root/scripts/dtc/util.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2012-11-09 03:38:05 (GMT)
committerLen Brown <len.brown@intel.com>2012-11-27 05:03:06 (GMT)
commite52966c084f9d9ea12be2ac7df801d610d4a19a5 (patch)
tree4ea59e63067349ce8671cdcf7fe06a62c0b1933b /scripts/dtc/util.c
parent3fc808aaa052dec7b155f3242c6c0eabf0c49127 (diff)
downloadlinux-fsl-qoriq-e52966c084f9d9ea12be2ac7df801d610d4a19a5.tar.xz
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>
Diffstat (limited to 'scripts/dtc/util.c')
0 files changed, 0 insertions, 0 deletions