Commit 2cf4528
rcu/nocb: Create kthreads on all CPUs if "rcu_nocbs=" or "nohz_full=" are passed
In order to be able to (de-)offload any CPU using cpusets in the future,
create the NOCB data structures for all possible CPUs. For now this is
done only as long as the "rcu_nocbs=" or "nohz_full=" kernel parameters
are passed to avoid the unnecessary overhead for most users.
Note that the rcuog and rcuoc kthreads are not created until at least
one of the corresponding CPUs comes online. This approach avoids the
creation of excess kthreads when firmware lies about the number of CPUs
present on the system.
Reviewed-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Uladzislau Rezki <urezki@gmail.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Joel Fernandes <joel@joelfernandes.org>
Tested-by: Juri Lelli <juri.lelli@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>1 parent a81aeaf commit 2cf4528
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1237 | 1237 | | |
1238 | 1238 | | |
1239 | 1239 | | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
1243 | | - | |
1244 | | - | |
| 1240 | + | |
| 1241 | + | |
1245 | 1242 | | |
1246 | 1243 | | |
1247 | 1244 | | |
| |||
1269 | 1266 | | |
1270 | 1267 | | |
1271 | 1268 | | |
1272 | | - | |
| 1269 | + | |
1273 | 1270 | | |
1274 | 1271 | | |
1275 | 1272 | | |
| |||
1319 | 1316 | | |
1320 | 1317 | | |
1321 | 1318 | | |
1322 | | - | |
| 1319 | + | |
1323 | 1320 | | |
1324 | 1321 | | |
1325 | 1322 | | |
| |||
1343 | 1340 | | |
1344 | 1341 | | |
1345 | 1342 | | |
1346 | | - | |
| 1343 | + | |
| 1344 | + | |
1347 | 1345 | | |
1348 | 1346 | | |
1349 | 1347 | | |
| |||
0 commit comments