]> www.infradead.org Git - users/willy/xarray.git/commit
rcu/nocb: Move nocb field at the end of state struct
authorFrederic Weisbecker <frederic@kernel.org>
Thu, 30 May 2024 13:45:43 +0000 (15:45 +0200)
committerNeeraj Upadhyay <neeraj.upadhyay@kernel.org>
Mon, 29 Jul 2024 02:04:31 +0000 (07:34 +0530)
commitff81428ede8a290fc5fd85135e39be1065ae6176
treeca315b3197a18e6e687f6f49549cf4f192defdf7
parent7aeba709a048d870c15940af8b620b16281c3b9e
rcu/nocb: Move nocb field at the end of state struct

nocb_is_setup is a rarely used field, mostly on boot and CPU hotplug.
It shouldn't occupy the middle of the rcu state hot fields cacheline.

Move it to the end and build it conditionally while at it. More cold
NOCB fields are to come.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>
kernel/rcu/tree.h