Skip to content
Commit 5f55836a authored by Clive Lin's avatar Clive Lin Committed by Rafael J. Wysocki
Browse files

PM: QoS: Add check to make sure CPU latency is non-negative



CPU latency should never be negative, which will be incorrectly high
when converted to unsigned data type.

Commit 8d366942 ("PM: QoS: Add check to make sure CPU freq is
non-negative") makes sure CPU frequency is non-negative to fix incorrect
behavior in freqency QoS.

Add an analogous check to make sure CPU latency is non-negative so as to
prevent this problem from happening in CPU latency QoS.

Signed-off-by: default avatarClive Lin <clive.lin@mediatek.com>
[ rjw: Changelog edits ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 706a7415
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment