diff options
author | Clive Lin <[email protected]> | 2023-07-31 14:03:54 +0800 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2023-08-22 21:37:29 +0200 |
commit | 5f55836ab41671e005038255fdd60482718d2ca2 (patch) | |
tree | bbe60899d0d135eba0c3e6e9f88b8472ea69beb9 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 706a741595047797872e669b3101429ab8d378ef (diff) |
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 8d36694245f2 ("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: Clive Lin <[email protected]>
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions