cpupower: cpupower info -b should return 0 on success, not the perf bias value
Signed-off-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
8a19cb5867
commit
3fc5a0e51a
1 changed files with 4 additions and 3 deletions
|
@ -125,11 +125,12 @@ int cmd_info(int argc, char **argv)
|
||||||
if (params.perf_bias) {
|
if (params.perf_bias) {
|
||||||
ret = msr_intel_get_perf_bias(cpu);
|
ret = msr_intel_get_perf_bias(cpu);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
printf(_("Could not read perf-bias value\n"));
|
fprintf(stderr,
|
||||||
break;
|
_("Could not read perf-bias value[%d]\n"), ret);
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
} else
|
} else
|
||||||
printf(_("perf-bias: %d\n"), ret);
|
printf(_("perf-bias: %d\n"), ret);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue