Re: [PATCH 1/2] clocksource: make clocksource_subsys const

From: John Stultz
Date: Mon Feb 05 2024 - 13:00:26 EST


On Sun, Feb 4, 2024 at 5:39 AM Ricardo B. Marliere <ricardo@xxxxxxxxxxxx> wrote:
>
> Now that the driver core can properly handle constant struct bus_type,
> move the clocksource_subsys variable to be a constant structure as well,
> placing it into read-only memory which can not be modified at runtime.
>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Suggested-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Ricardo B. Marliere <ricardo@xxxxxxxxxxxx>


Acked-by: John Stultz <jstultz@xxxxxxxxxx>