Skip to content
Commit 9fcb09bd authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcu/nocb: Round down for number of no-CBs grace-period kthreads



Currently, when the square root of the number of CPUs is rounded down
by int_sqrt(), this round-down is applied to the number of callback
kthreads per grace-period kthreads.  This makes almost no difference
for large systems, but results in oddities such as three no-CBs
grace-period kthreads for a five-CPU system, which is a bit excessive.
This commit therefore causes the round-down to apply to the number of
no-CBs grace-period kthreads, so that systems with from four to eight
CPUs have only two no-CBs grace period kthreads.

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
parent 81c0b3d7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment