diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2020-03-05 14:45:25 -0800 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-03-20 14:46:21 +0200 |
commit | 6d1f2dc8a5d9d1675e664c11ebecbcef739bf058 (patch) | |
tree | 6fa66b1030e29a7889beaf8f81c6923c44b6ed7d /tools/power | |
parent | 6c8edba37cc58f44e02f846c4ab50702b64564fd (diff) | |
download | linux-6d1f2dc8a5d9d1675e664c11ebecbcef739bf058.tar.gz linux-6d1f2dc8a5d9d1675e664c11ebecbcef739bf058.tar.bz2 linux-6d1f2dc8a5d9d1675e664c11ebecbcef739bf058.zip |
tools/power/x86/intel-speed-select: Display error for invalid priority type
When priority type for core-power enable command is anything more than 1
display error before change to 1, which is ordered priority.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'tools/power')
-rw-r--r-- | tools/power/x86/intel-speed-select/isst-core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/power/x86/intel-speed-select/isst-core.c b/tools/power/x86/intel-speed-select/isst-core.c index 732d9a5eacf1..f69c009ef6f6 100644 --- a/tools/power/x86/intel-speed-select/isst-core.c +++ b/tools/power/x86/intel-speed-select/isst-core.c @@ -897,6 +897,9 @@ int isst_pm_qos_config(int cpu, int enable_clos, int priority_type) else req = req & ~BIT(1); + if (priority_type > 1) + fprintf(stderr, "Invalid priority type: Changing type to ordered\n"); + if (priority_type) req = req | BIT(2); else |