diff options
author | 2020-05-25 23:47:51 +0200 | |
---|---|---|
committer | 2020-06-29 11:59:25 -0700 | |
commit | 69f08d3999dbef1553a3332b8055282dd3893b6c (patch) | |
tree | bf82f8c7540248334a5d51cc192c10550f56fa87 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rcu/tree: Move kfree_rcu_cpu locking/unlocking to separate functions (diff) | |
download | wireguard-linux-69f08d3999dbef1553a3332b8055282dd3893b6c.tar.xz wireguard-linux-69f08d3999dbef1553a3332b8055282dd3893b6c.zip |
rcu/tree: Use static initializer for krc.lock
The per-CPU variable is initialized at runtime in
kfree_rcu_batch_init(). This function is invoked before
'rcu_scheduler_active' is set to 'RCU_SCHEDULER_RUNNING'.
After the initialisation, '->initialized' is to true.
The raw_spin_lock is only acquired if '->initialized' is
set to true. The worqueue item is only used if 'rcu_scheduler_active'
set to RCU_SCHEDULER_RUNNING which happens after initialisation.
Use a static initializer for krc.lock and remove the runtime
initialisation of the lock. Since the lock can now be always
acquired, remove the '->initialized' check.
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions