]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 05:05:10 +0000 (00:05 -0500)
commita6da308446aef8ba00623a77ca2b0185d4f29f1b
tree775bf231662c84f8f3799989d3bfdd933d7ff901
parent39006d7b16789f41d230cf9eb3164e04950fb9a8
tools/power/x86/intel-speed-select: Ignore missing config level

BugLink: https://bugs.launchpad.net/bugs/1860816
[ Upstream commit 20183ccd3e4d01d23b0a01fe9f3ee73fbae312fa ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/power/x86/intel-speed-select/isst-core.c
tools/power/x86/intel-speed-select/isst-display.c