On Sat, Dec 11, 2021 at 10:26 PM Biju Das <biju.das.jz@xxxxxxxxxxxxxx> wrote: > The value of timer_cycle_us can be 0 due to 32bit overflow. > For eg:- If we assign the counter value "0xfff" for computing > maxval. > > This patch fixes this issue by appending ULL to 1024, so that > it is promoted to 64bit. > > Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx> Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds