From: Len Brown Date: Fri, 9 Nov 2012 03:38:05 +0000 (-0500) Subject: tools/power turbostat: prevent infinite loop on migration error path X-Git-Tag: v3.8-rc1~59^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e52966c084f9d9ea12be2ac7df801d610d4a19a5;p=pandora-kernel.git 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 --- Reading git-diff-tree failed