workqueue: make wq_subsys const
authorRicardo B. Marliere <ricardo@marliere.net>
Sun, 4 Feb 2024 13:47:05 +0000 (10:47 -0300)
committerTejun Heo <tj@kernel.org>
Sun, 4 Feb 2024 21:23:25 +0000 (11:23 -1000)
commitd412ace11144aa2bf692c7cf9778351efc15c827
tree2a509054146522b3ee24fcd9f7fbb3806ed9bc92
parentc70e1779b73a39f7648b26bdc835304c60100ce3
workqueue: make wq_subsys const

Now that the driver core can properly handle constant struct bus_type,
move the wq_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@linuxfoundation.org>
Suggested-and-reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c