summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2020-05-26 00:47:51 +0300
committerPaul E. McKenney <paulmck@kernel.org>2020-06-29 21:59:25 +0300
commit69f08d3999dbef1553a3332b8055282dd3893b6c (patch)
treebf82f8c7540248334a5d51cc192c10550f56fa87 /scripts/gdb/linux/utils.py
parent952371d6fc0bc360d1d5780f86bb355836117ca2 (diff)
downloadlinux-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