]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/power/x86/intel-speed-select: Fix some program return value
authorZhang Rui <rui.zhang@intel.com>
Thu, 19 Mar 2026 05:52:54 +0000 (13:52 +0800)
committerSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Sun, 5 Apr 2026 18:46:21 +0000 (11:46 -0700)
commit3e244dd513e26728577f1e4deca6fdf749b6f244
tree5e1f46e1196454c661d33289b2373070b9040fa2
parentdf4a83543117c7fc27077fd7f4ffe870556b257b
tools/power/x86/intel-speed-select: Fix some program return value

When running the "intel-speed-select -h" command, it returns
1. 0 when using a version that is API incompatible.
2. 1 when using a version that is API compatible.
And this is confusing.

Fix the program to return 0 for "-h" parameter, and return 1 whenever
"Incompatible API versions" is detected.

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