diff options
author | Lukasz Luba <[email protected]> | 2020-12-10 14:30:11 +0000 |
---|---|---|
committer | Daniel Lezcano <[email protected]> | 2020-12-11 14:10:44 +0100 |
commit | 229794eee27fddbedd03be5f8b20375a2637ff48 (patch) | |
tree | 09cccc8a0ac9ad51671dbcd8f2fa3f415cbf04f2 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b8643a529930802778b04a4fe3f5cd53d9d6057c (diff) |
thermal: devfreq_cooling: use a copy of device status
Devfreq cooling needs to now the correct status of the device in order
to operate. Devfreq framework can change the device status in the
background. To mitigate issues make a copy of the status structure and use
it for internal calculations.
In addition this patch adds normalization function, which also makes sure
that whatever data comes from the device, the load will be in range from 1
to 1024.
Reviewed-by: Ionela Voinescu <[email protected]>
Signed-off-by: Lukasz Luba <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions