mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
fix typos in x86_energy_perf_policy.c
This commit is contained in:
parent
dc772f8237
commit
d74f72e242
@ -1018,12 +1018,12 @@ int verify_hwp_req_self_consistency(int cpu, struct msr_hwp_request *req)
|
|||||||
cpu, req->hwp_min, req->hwp_max);
|
cpu, req->hwp_min, req->hwp_max);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* fail if desired > max requestd */
|
/* fail if desired > max requested */
|
||||||
if (req->hwp_desired && (req->hwp_desired > req->hwp_max)) {
|
if (req->hwp_desired && (req->hwp_desired > req->hwp_max)) {
|
||||||
errx(1, "cpu%d: requested hwp-desired %d > hwp_max %d",
|
errx(1, "cpu%d: requested hwp-desired %d > hwp_max %d",
|
||||||
cpu, req->hwp_desired, req->hwp_max);
|
cpu, req->hwp_desired, req->hwp_max);
|
||||||
}
|
}
|
||||||
/* fail if desired < min requestd */
|
/* fail if desired < min requested */
|
||||||
if (req->hwp_desired && (req->hwp_desired < req->hwp_min)) {
|
if (req->hwp_desired && (req->hwp_desired < req->hwp_min)) {
|
||||||
errx(1, "cpu%d: requested hwp-desired %d < requested hwp_min %d",
|
errx(1, "cpu%d: requested hwp-desired %d < requested hwp_min %d",
|
||||||
cpu, req->hwp_desired, req->hwp_min);
|
cpu, req->hwp_desired, req->hwp_min);
|
||||||
@ -1356,13 +1356,13 @@ int req_update_bounds_check(void)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* fail if desired > max requestd */
|
/* fail if desired > max requested */
|
||||||
if (req_update.hwp_desired && update_hwp_max &&
|
if (req_update.hwp_desired && update_hwp_max &&
|
||||||
(req_update.hwp_desired > req_update.hwp_max)) {
|
(req_update.hwp_desired > req_update.hwp_max)) {
|
||||||
printf("hwp-desired cannot be greater than hwp_max\n");
|
printf("hwp-desired cannot be greater than hwp_max\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
/* fail if desired < min requestd */
|
/* fail if desired < min requested */
|
||||||
if (req_update.hwp_desired && update_hwp_min &&
|
if (req_update.hwp_desired && update_hwp_min &&
|
||||||
(req_update.hwp_desired < req_update.hwp_min)) {
|
(req_update.hwp_desired < req_update.hwp_min)) {
|
||||||
printf("hwp-desired cannot be less than hwp_min\n");
|
printf("hwp-desired cannot be less than hwp_min\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user