aboutsummaryrefslogtreecommitdiffstats
path: root/tools/power/x86/intel-speed-select/isst-display.c
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2019-11-15 12:35:22 -0800
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-11-21 14:27:32 +0200
commit20183ccd3e4d01d23b0a01fe9f3ee73fbae312fa (patch)
tree981fddb516ffb26d6950c34c077016a1d6f4b10a /tools/power/x86/intel-speed-select/isst-display.c
parentplatform/x86: touchscreen_dmi: Add info for the ezpad 6 m4 tablet (diff)
downloadlinux-dev-20183ccd3e4d01d23b0a01fe9f3ee73fbae312fa.tar.xz
linux-dev-20183ccd3e4d01d23b0a01fe9f3ee73fbae312fa.zip
tools/power/x86/intel-speed-select: Ignore missing config level
It is possible that certain config levels are not available, even if the max level includes the level. There can be missing levels in some platforms. So ignore the level when called for information dump for all levels and fail if specifically ask for the missing level. Here the changes is to continue reading information about other levels even if we fail to get information for the current level. But use the "processed" flag to indicate the failure. When the "processed" flag is not set, don't dump information about that level. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to '')
-rw-r--r--tools/power/x86/intel-speed-select/isst-display.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/power/x86/intel-speed-select/isst-display.c b/tools/power/x86/intel-speed-select/isst-display.c
index c976bfe9b503..040dd09d5eee 100644
--- a/tools/power/x86/intel-speed-select/isst-display.c
+++ b/tools/power/x86/intel-speed-select/isst-display.c
@@ -315,7 +315,8 @@ void isst_ctdp_display_information(int cpu, FILE *outf, int tdp_level,
char value[256];
int i, base_level = 1;
- print_package_info(cpu, outf);
+ if (pkg_dev->processed)
+ print_package_info(cpu, outf);
for (i = 0; i <= pkg_dev->levels; ++i) {
struct isst_pkg_ctdp_level_info *ctdp_level;