clockevents: Make clockevents_subsys const
authorRicardo B. Marliere <ricardo@marliere.net>
Sun, 4 Feb 2024 13:40:16 +0000 (10:40 -0300)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 7 Feb 2024 14:11:24 +0000 (15:11 +0100)
commit49f1ff50d49fb8b40bc0271177de8092226396e9
tree78b14ec3e2d18acf4636752b1b0f96688b4f7a2a
parent2bc7fc24f9a85cb6b7335354b2733615727689f6
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240204-bus_cleanup-time-v1-2-207ec18e24b8@marliere.net
kernel/time/clockevents.c