Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fc5a0e5 authored by Thomas Renninger's avatar Thomas Renninger Committed by Rafael J. Wysocki
Browse files

cpupower: cpupower info -b should return 0 on success, not the perf bias value

parent 8a19cb58
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -125,11 +125,12 @@ 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;
				fprintf(stderr,
			_("Could not read perf-bias value[%d]\n"), ret);
				exit(EXIT_FAILURE);
			} else
				printf(_("perf-bias: %d\n"), ret);
		}
	}
	return ret;
	return 0;
}