[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <175343951733.1420.16247336951842270693.tip-bot2@tip-bot2>
Date: Fri, 25 Jul 2025 10:31:57 -0000
From: "tip-bot2 for Daniel Lezcano" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Daniel Lezcano <daniel.lezcano@...aro.org>, Ingo Molnar <mingo@...nel.org>,
Will McVicker <willmcvicker@...gle.com>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject:
[tip: timers/clocksource] clocksource/drivers/scx200: Add module owner
The following commit has been merged into the timers/clocksource branch of tip:
Commit-ID: 32095e3f3c0affe59a1a465ed19ae9a24f5fb44a
Gitweb: https://git.kernel.org/tip/32095e3f3c0affe59a1a465ed19ae9a24f5fb44a
Author: Daniel Lezcano <daniel.lezcano@...aro.org>
AuthorDate: Mon, 02 Jun 2025 17:18:45 +02:00
Committer: Ingo Molnar <mingo@...nel.org>
CommitterDate: Fri, 25 Jul 2025 11:42:32 +02:00
clocksource/drivers/scx200: Add module owner
The conversion to modules requires a correct handling of the module
refcount in order to prevent to unload it if it is in use. That is
especially true with clockevents where there is no function to
unregister them.
The core time framework correctly handles the module refcount with the
different clocksource and clockevents if the module owner is set.
Add the module owner to make sure the core framework will prevent
stupid things happening when the driver will be converted into a
module.
Signed-off-by: Daniel Lezcano <daniel.lezcano@...aro.org>
Signed-off-by: Ingo Molnar <mingo@...nel.org>
Reviewed-by: Will McVicker <willmcvicker@...gle.com>
Link: https://lore.kernel.org/r/20250602151853.1942521-2-daniel.lezcano@linaro.org
---
drivers/clocksource/scx200_hrt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clocksource/scx200_hrt.c b/drivers/clocksource/scx200_hrt.c
index c3536ff..5a99801 100644
--- a/drivers/clocksource/scx200_hrt.c
+++ b/drivers/clocksource/scx200_hrt.c
@@ -52,6 +52,7 @@ static struct clocksource cs_hrt = {
.mask = CLOCKSOURCE_MASK(32),
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
/* mult, shift are set based on mhz27 flag */
+ .owner = THIS_MODULE,
};
static int __init init_hrt_clocksource(void)
Powered by blists - more mailing lists