forked from pool/cpupower
Thomas Renninger
f443a2fc15
which is already printed to stdout. Add cpupower-return_zero_on_success.patch - Remove mc and smt scheduler knobs. These do not exist anymore in latest kernels for quite a while now. Add cpupower-remove_mc_scheduler_bits.patch OBS-URL: https://build.opensuse.org/package/show/hardware/cpupower?expand=0&rev=40
24 lines
657 B
Diff
24 lines
657 B
Diff
cpupower: cpupower info -b should return 0 on success, not the perf bias value
|
|
|
|
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
|
|
|
diff --git a/utils/cpupower-info.c b/utils/cpupower-info.c
|
|
index 3f68632..3e27975 100644
|
|
--- a/utils/cpupower-info.c
|
|
+++ b/utils/cpupower-info.c
|
|
@@ -125,11 +125,11 @@ int cmd_info(int argc, char **argv)
|
|
if (params.perf_bias) {
|
|
ret = msr_intel_get_perf_bias(cpu);
|
|
if (ret < 0) {
|
|
- printf(_("Could not read perf-bias value\n"));
|
|
- break;
|
|
+ printf(_("Could not read perf-bias value[%d]\n"), ret);
|
|
+ exit(EXIT_FAILURE);
|
|
} else
|
|
printf(_("perf-bias: %d\n"), ret);
|
|
}
|
|
}
|
|
- return ret;
|
|
+ return 0;
|
|
}
|