diff options
| author | Cristian Marussi <cristian.marussi@arm.com> | 2026-05-08 18:32:46 +0300 |
|---|---|---|
| committer | Sudeep Holla <sudeep.holla@kernel.org> | 2026-05-12 17:29:10 +0300 |
| commit | d0c81a38d06d446d341532700b3a4a43d3b00eb1 (patch) | |
| tree | 5c279a583eb83803338ab0404c53dd89c74da579 /include/linux/timerqueue.h | |
| parent | 145728fb616a62e5a2642f2efd3829f7c8874958 (diff) | |
| download | linux-d0c81a38d06d446d341532700b3a4a43d3b00eb1.tar.xz | |
clk: scmi: Fix clock rate rounding
While the do_div() helper used for rounding expects its divisor argument
to be a 32bits quantity, the currently provided divisor parameter is a
64bit value that, as a consequence, is silently truncated and a possible
source of bugs.
Fix by using the proper div64_ul helper.
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: linux-clk@vger.kernel.org
Fixes: 7a8655e19bdb ("clk: scmi: Fix the rounding of clock rate")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260508153300.2224715-2-cristian.marussi@arm.com
Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
