aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rcu/tree.c')
-rw-r--r--kernel/rcu/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index c6fd0f15425c..6724bd98da7d 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -3461,8 +3461,8 @@ static void __init rcu_init_one(struct rcu_state *rsp,
3461 rnp->qsmaskinit = 0; 3461 rnp->qsmaskinit = 0;
3462 rnp->grplo = j * cpustride; 3462 rnp->grplo = j * cpustride;
3463 rnp->grphi = (j + 1) * cpustride - 1; 3463 rnp->grphi = (j + 1) * cpustride - 1;
3464 if (rnp->grphi >= NR_CPUS) 3464 if (rnp->grphi >= nr_cpu_ids)
3465 rnp->grphi = NR_CPUS - 1; 3465 rnp->grphi = nr_cpu_ids - 1;
3466 if (i == 0) { 3466 if (i == 0) {
3467 rnp->grpnum = 0; 3467 rnp->grpnum = 0;
3468 rnp->grpmask = 0; 3468 rnp->grpmask = 0;