mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 11:49:32 +00:00
rcu: Replace NR_CPUS with nr_cpu_ids
This patch replaces NR_CPUS with nr_cpu_ids as NR_CPUS should consider cpumask_var_t. Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
parent
7941dbdebe
commit
595f3900f6
1 changed files with 2 additions and 2 deletions
|
@ -3461,8 +3461,8 @@ static void __init rcu_init_one(struct rcu_state *rsp,
|
|||
rnp->qsmaskinit = 0;
|
||||
rnp->grplo = j * cpustride;
|
||||
rnp->grphi = (j + 1) * cpustride - 1;
|
||||
if (rnp->grphi >= NR_CPUS)
|
||||
rnp->grphi = NR_CPUS - 1;
|
||||
if (rnp->grphi >= nr_cpu_ids)
|
||||
rnp->grphi = nr_cpu_ids - 1;
|
||||
if (i == 0) {
|
||||
rnp->grpnum = 0;
|
||||
rnp->grpmask = 0;
|
||||
|
|
Loading…
Reference in a new issue