]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clocksource/drivers/timer-tegra186: Simplify calculating timeleft
authorGuenter Roeck <linux@roeck-us.net>
Sat, 14 Jun 2025 17:55:56 +0000 (10:55 -0700)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Sep 2025 08:54:58 +0000 (10:54 +0200)
commit7f3abae5b447a7f8458a0f58a003c11c46aade99
tree1f1fc6081f62ddf5c89d097f4acfad80a71d11dc
parent916aa36042db8ee230543ffe0d192f900e8b8c9f
clocksource/drivers/timer-tegra186: Simplify calculating timeleft

It is not necessary to use 64-bit operations to calculate the
remaining watchdog timeout. Simplify to use 32-bit operations,
and add comments explaining why there will be no overflow.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Cc: Pohsun Su <pohsuns@nvidia.com>
Cc: Robert Lin <robelin@nvidia.com>
Link: https://lore.kernel.org/r/20250614175556.922159-2-linux@roeck-us.net
drivers/clocksource/timer-tegra186.c