diff options
| author | Paul E. McKenney <paulmck@linux.ibm.com> | 2019-06-01 15:14:47 +0300 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2019-08-14 00:35:49 +0300 |
| commit | 9fcb09bddd56bae42319b606bae86e85c625f868 (patch) | |
| tree | 89cccab3be8d16aaf2991239b8f03b18afdb9629 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | 81c0b3d724f419c0524f432c1ac22b9f518c2899 (diff) | |
| download | linux-9fcb09bddd56bae42319b606bae86e85c625f868.tar.xz | |
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: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
