clocksource/drivers/vf-pit: Register the clocksource from the driver
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 4 Aug 2025 15:23:27 +0000 (17:23 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Sep 2025 10:29:15 +0000 (12:29 +0200)
commitc106b698ab8d1899d62de880d73dd99edb319849
tree1edaee35c035f347e535bb90e72394c56a418d06
parent0c063c9afc1b5243adde544637e273c1ac0a31d9
clocksource/drivers/vf-pit: Register the clocksource from the driver

The function clocksource_mmio_init() uses its own global static
clocksource variable making no possible to have several instances of a
clocksource using this function. In order to support that, let's add
the clocksource structure to the pit structure and use the
clocksource_register_hz() function instead.

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