]> git.baikalelectronics.ru Git - kernel.git/commit
rcu-tasks: Introduce ->percpu_enqueue_shift for dynamic queue selection
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 8 Nov 2021 18:51:13 +0000 (10:51 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 8 Dec 2021 00:26:57 +0000 (16:26 -0800)
commit7a30871b6a27de1a1f418c7fd2c5dde9a46bfd16
treec0b13f98b4f8ea2e44dbac97dae52c09d57222bb
parentcafafd67765b21334086b3fb8963ad9c5866c03d
rcu-tasks: Introduce ->percpu_enqueue_shift for dynamic queue selection

This commit introduces a ->percpu_enqueue_shift field to the rcu_tasks
structure, and uses it to shift down the CPU number in order to
select a rcu_tasks_percpu structure.  This field is currently set to a
sufficiently large shift count to always select the CPU-0 instance of
the rcu_tasks_percpu structure, and later commits will adjust this.

Reported-by: Martin Lau <kafai@fb.com>
Cc: Neeraj Upadhyay <neeraj.iitr10@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tasks.h