diff options
| author | 2026-09-09 21:14:12 +0800 | |
|---|---|---|
| committer | 2026-09-24 16:42:19 -0400 | |
| commit | a1d0465f027d341c6855324a5c63e54780ce20f3 (patch) | |
| tree | 1d4aa8f4eb501e877147348c0574e490a3948536 /scripts/Makefile.thinlto | |
| parent | clk: mvebu: ap-cpu-clk: Assign .num before accessing .hws (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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
