]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clocksource/drivers/vf-pit: Allocate the struct timer at init time
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 4 Aug 2025 15:23:25 +0000 (17:23 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Sep 2025 10:29:02 +0000 (12:29 +0200)
commit375fbfc66ca23873c3d9b1c5f6739bf0e2875a57
treeee756f3965f0de79dac4d8eed02eb56f3600916f
parent8b0795e0fc0cf181ecab59d3a9a1618886ea995b
clocksource/drivers/vf-pit: Allocate the struct timer at init time

Instead of having a static global structure for a timer, let's
allocate it dynamically so we can create multiple instances in the
future to support multiple timers. At the same time, add the
rollbacking code in case of error.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20250804152344.1109310-8-daniel.lezcano@linaro.org
drivers/clocksource/timer-vf-pit.c