Commit 49f1ff50 authored by Ricardo B. Marliere's avatar Ricardo B. Marliere Committed by Thomas Gleixner

clockevents: Make clockevents_subsys const

Now that the driver core can properly handle constant struct bus_type,
move the clockevents_subsys variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.
Suggested-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarRicardo B. Marliere <ricardo@marliere.net>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240204-bus_cleanup-time-v1-2-207ec18e24b8@marliere.net
parent 2bc7fc24
...@@ -659,7 +659,7 @@ void tick_cleanup_dead_cpu(int cpu) ...@@ -659,7 +659,7 @@ void tick_cleanup_dead_cpu(int cpu)
#endif #endif
#ifdef CONFIG_SYSFS #ifdef CONFIG_SYSFS
static struct bus_type clockevents_subsys = { static const struct bus_type clockevents_subsys = {
.name = "clockevents", .name = "clockevents",
.dev_name = "clockevent", .dev_name = "clockevent",
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment