Re: [PATCH] ntp: Fix RTC synchronization on 32-bit platforms

2021-01-11 Thread Geert Uytterhoeven
On Mon, Jan 11, 2021 at 11:40 AM Geert Uytterhoeven wrote: > Due to an integer overflow, RTC synchronization now happens every 2s > instead of the intended 11 minutes. Fix this by forcing 64-bit > arithmetic for the sync period calculation. > > Fixes: c9e6189fb03123a7 ("ntp: Make the RTC synchron

[PATCH] ntp: Fix RTC synchronization on 32-bit platforms

2021-01-11 Thread Geert Uytterhoeven
Due to an integer overflow, RTC synchronization now happens every 2s instead of the intended 11 minutes. Fix this by forcing 64-bit arithmetic for the sync period calculation. Fixes: c9e6189fb03123a7 ("ntp: Make the RTC synchronization more reliable") Signed-off-by: Geert Uytterhoeven --- kerne