tools/power/x86/intel-speed-select: Ignore missing config level
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 15 Nov 2019 20:35:22 +0000 (12:35 -0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 21 Nov 2019 12:27:32 +0000 (14:27 +0200)
commit20183ccd3e4d01d23b0a01fe9f3ee73fbae312fa
tree981fddb516ffb26d6950c34c077016a1d6f4b10a
parentee7b0d31f9f0192619a978b315abdb86beb27fdd
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>
tools/power/x86/intel-speed-select/isst-core.c
tools/power/x86/intel-speed-select/isst-display.c