]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clocksource/drivers/vf-pit: Consolidate calls to pit_*_disable/enable
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 4 Aug 2025 15:23:34 +0000 (17:23 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Sep 2025 10:29:55 +0000 (12:29 +0200)
commit5ba405c719ce68a86308dd3bd90aeea59959030d
treed533678e7504d29f5e11897748a66728b90480d9
parent46e83e4afc05c87b5edc2b0b4765283f101af0c6
clocksource/drivers/vf-pit: Consolidate calls to pit_*_disable/enable

The difference between the pit_clocksource_enable() and
pit_clocksource_disable() is only setting the TIF flag for the
clockevent. Let's group them and pass the TIF flag parameter to the
function so we save some lines of code. But as the base address is
different regarding if it is a clocksource or a clockevent, we pass
the base address in parameter instead of the struct pit_timer.

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