diff options
author | Shivnandan Kumar <quic_kshivnan@quicinc.com> | 2022-07-15 15:25:39 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-07-26 21:48:33 +0300 |
commit | 8d36694245f2aec17f03a5e0b2797953d2e36704 (patch) | |
tree | e1b8654f1e8e096dc1b7952cabc27635fc15d65c /Documentation/power | |
parent | e0dccc3b76fb35bb257b4118367a883073d7390e (diff) | |
download | linux-8d36694245f2aec17f03a5e0b2797953d2e36704.tar.xz |
PM: QoS: Add check to make sure CPU freq is non-negative
CPU frequency should never be negative.
If some client driver calls freq_qos_update_request with a
negative value which will be very high in absolute terms,
then frequency QoS sets max CPU freq at fmax as it considers
it's absolute value but it will add plist node with negative
priority.
plist node has priority from INT_MIN (highest) to INT_MAX(lowest).
Once priority is set as negative, another client will not be able
to reduce CPU frequency.
Adding check to make sure CPU freq is non-negative will fix
this problem.
Signed-off-by: Shivnandan Kumar <quic_kshivnan@quicinc.com>
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/power')
0 files changed, 0 insertions, 0 deletions