diff options
author | Boris Brezillon <[email protected]> | 2014-11-14 19:54:49 +0100 |
---|---|---|
committer | Michael Turquette <[email protected]> | 2014-11-17 10:38:40 -0800 |
commit | ff553ea1a3d5b903becda790eeb6bd3debf239f9 (patch) | |
tree | becb282ec5a16929bc69a105e7ad2ef09cac6875 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 206c5f60a3d902bc4b56dab2de3e88de5eb06108 (diff) |
clk: at91: usb: fix at91rm9200 round and set rate
at91rm9200_clk_usb_set_rate might fail depending on the requested rate,
because the parent_rate / rate remainder is not necessarily zero.
Moreover, when rounding down the calculated rate we might alter the
divisor calculation and end up with an invalid divisor.
To solve those problems, accept a non zero remainder, and always round
division to the closest result.
Signed-off-by: Boris Brezillon <[email protected]>
Reported-by: Andreas Henriksson <[email protected]>
Tested-by: Andreas Henriksson <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Signed-off-by: Michael Turquette <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions