aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <[email protected]>2019-08-30 15:45:10 +0200
committerGeert Uytterhoeven <[email protected]>2019-10-01 10:24:49 +0200
commite8adb3a0f74cf568030b7bd1f77d877e6f308d17 (patch)
tree4ae9e94ec62c3eefc10263f1953f1156760782c2 /scripts/gcc-plugins/cyc_complexity_plugin.c
parentb5dea62d34042d173ba1d1887c8dd40262423d68 (diff)
clk: renesas: rcar-gen3: Avoid double table iteration in SD .set_rate()
The .set_rate() callback for the SD clocks is always called with a valid clock rate, returned by .round_rate(). Hence there is no need to iterate through the divider table twice: once to repeat the work done by .round_rate(), and a second time to find the corresponding divider entry. Just iterate once, looking for the divider that matches the passed clock rate. Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions