cgroup/cpuset: no need to explicitly init a global static variable
authorDaniel Vacek <neelx@redhat.com>
Tue, 20 Dec 2022 15:14:15 +0000 (16:14 +0100)
committerTejun Heo <tj@kernel.org>
Wed, 4 Jan 2023 22:19:17 +0000 (12:19 -1000)
commit21786e5cb375a1e58a9175fee423e1d7f892d965
tree56ee7772e725ee79c792907d5c478534b6e896d1
parent512dee0c00ad9e9c7ae9f11fc6743702ea40caff
cgroup/cpuset: no need to explicitly init a global static variable

cpuset_rwsem is a static variable defined with DEFINE_STATIC_PERCPU_RWSEM().
It's initialized at build time and so there's no need for explicit runtime
init leaking one percpu int.

Signed-off-by: Daniel Vacek <neelx@redhat.com>
Reviewed-by: Aaron Tomlin <atomlin@atomlin.com>
Acked-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c