diff options
author | Sivaram Nair <[email protected]> | 2020-10-21 13:10:54 +0300 |
---|---|---|
committer | Thierry Reding <[email protected]> | 2020-11-26 16:28:07 +0100 |
commit | a886c310d9fcb0e66253d4af225cba13f9bdf5d2 (patch) | |
tree | 6a164b3a6b6925b5a94b3044f9502a00be5a750d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 6160aca443148416994c022a35c77daeba948ea6 (diff) |
clk: tegra: bpmp: Clamp clock rates on requests
BPMP firmware ABI expects the rate inputs in int64_t. However,
tegra_bpmp_clk_round_rate() and tegra_bpmp_clk_set_rate() functions
directly assign 'unsigned long' inputs to a int64_t value causing
unexpected rounding errors.
Fix this by clipping the input rate to S64_MAX.
Signed-off-by: Sivaram Nair <[email protected]>
[mperttunen: slight cleanup]
Signed-off-by: Mikko Perttunen <[email protected]>
Reviewed-by: Sivaram Nair <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions