diff options
author | Ionela Voinescu <[email protected]> | 2020-09-01 21:55:45 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2020-09-18 19:10:33 +0200 |
commit | 0a10d3fe3e5c601031676e81b41fb2977650b4d4 (patch) | |
tree | 54822169252c7b96c47ffafeba4f6ea8020ca28e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 856deb866d16e29bd65952e0289066f6078af773 (diff) |
arch_topology: validate input frequencies to arch_set_freq_scale()
The current frequency passed to arch_set_freq_scale() could end up
being 0, signaling an error in setting a new frequency. Also, if the
maximum frequency in 0, this will result in a division by 0 error.
Therefore, validate these input values before using them for the
setting of the frequency scale factor.
Signed-off-by: Ionela Voinescu <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Reviewed-by: Sudeep Holla <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions