diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2020-05-26 00:47:51 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-06-29 21:59:25 +0300 |
commit | 69f08d3999dbef1553a3332b8055282dd3893b6c (patch) | |
tree | bf82f8c7540248334a5d51cc192c10550f56fa87 /scripts/gdb/linux/utils.py | |
parent | 952371d6fc0bc360d1d5780f86bb355836117ca2 (diff) | |
download | linux-69f08d3999dbef1553a3332b8055282dd3893b6c.tar.xz |
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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions