tools/power/x86/intel-speed-select: Avoid setting duplicate tdp level
authorZhang Rui <rui.zhang@intel.com>
Thu, 2 Feb 2023 07:55:25 +0000 (15:55 +0800)
committerSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 22 Mar 2023 20:36:55 +0000 (13:36 -0700)
commit14f0cf6cfa53a3a4f2f713b1d54eb71e96ff34cb
treec319a134e49caec7e291231eaa61f4a67e460096
parentc7ff8ff3b29ee031a2194f67b5ceced9b77fdc21
tools/power/x86/intel-speed-select: Avoid setting duplicate tdp level

If the new TDP level requetsted is same as the current TDP level, don't
call into driver to change level.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
[srinivas.pandruvada@linux.intel.com: changelog edits]
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
tools/power/x86/intel-speed-select/isst-config.c