diff options
author | Tony Prisk <[email protected]> | 2012-12-27 13:14:30 +1300 |
---|---|---|
committer | Mike Turquette <[email protected]> | 2013-01-15 16:16:24 -0800 |
commit | 72480014b86c8b51fb51c5c6a0525876055c37c7 (patch) | |
tree | 7c9d0254c7dda9d1089415814ac72f7190ba7271 /tools/perf/scripts/python/netdev-times.py | |
parent | 35a5db55ab96eadb07b3d5f7258558c680ebc2f0 (diff) |
clk: vt8500: Fix device clock divisor calculations
When calculating device clock divisor values in set_rate and
round_rate, we do a simple integer divide. If parent_rate / rate
has a fraction, this is dropped which results in the device clock
being set too high.
This patch corrects the problem by adding 1 to the calculated
divisor if the division would have had a decimal result.
Signed-off-by: Tony Prisk <[email protected]>
Signed-off-by: Mike Turquette <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions