diff options
| author | Peijie Shao <shaopeijie@gmail.com> | 2026-09-09 21:14:12 +0800 |
|---|---|---|
| committer | Brian Masney <bmasney@redhat.com> | 2026-09-24 16:42:19 -0400 |
| commit | a1d0465f027d341c6855324a5c63e54780ce20f3 (patch) | |
| tree | 1d4aa8f4eb501e877147348c0574e490a3948536 /include/linux/timerqueue.h | |
| parent | b4243850393f2f24e21b9f4b2c56233e60c904b4 (diff) | |
clk: clocking-wizard: Fix overflow in clockout0 divisor calculation
On 32-bit platforms (e.g., Zynq 7000 series), parent_rate * 1000
may overflow, leading to incorrect divisor calculation.
The issue was first found on Zynq7020 with "parent_rate=1GHz"
and "xlnx,nr-outputs=2".
Cast parent_rate to u64 and use the ULL version of DIV_ROUND*
instead.
Signed-off-by: Peijie Shao <shaopeijie@gmail.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
