summaryrefslogtreecommitdiffstats
path: root/drivers/clk/renesas
diff options
context:
space:
mode:
authorSimon Horman <horms+renesas@verge.net.au>2019-03-25 17:35:53 +0100
committerGeert Uytterhoeven <geert+renesas@glider.be>2019-04-02 09:50:48 +0200
commitcb8be119d21d8a0affc3598a928dd0baf5da238f (patch)
treea9cad79fb039220cd64061c02f34afc3eecb5a84 /drivers/clk/renesas
parentclk: renesas: rcar-gen3: Remove CLK_TYPE_GEN3_Z2 (diff)
downloadlinux-cb8be119d21d8a0affc3598a928dd0baf5da238f.tar.xz
linux-cb8be119d21d8a0affc3598a928dd0baf5da238f.zip
math64: New DIV64_U64_ROUND_CLOSEST helper
Provide DIV64_U64_ROUND_CLOSEST helper which performs division rounded to the closest integer using an unsigned 64bit dividend and divisor. This will be used in a follow-up patch to allow calculation of clock divisors with high frequency parents in the R-Car Gen3 CPG MSSR driver where overflow occurs if either the dividend or divisor is 32bit. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'drivers/clk/renesas')
0 files changed, 0 insertions, 0 deletions