diff options
author | Himangi Saraogi <himangi774@gmail.com> | 2014-03-18 13:22:26 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-04-29 11:44:55 -0400 |
commit | 595f3900f6b4221403493c530138b8dad2bd87f3 (patch) | |
tree | 798b1cf1c22f08c00f766860ea95aca353a6be9d /kernel/rcu/tree.c | |
parent | 7941dbdebe2a1fda31aefa033794510f95720a5a (diff) |
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>
Diffstat (limited to 'kernel/rcu/tree.c')
-rw-r--r-- | kernel/rcu/tree.c | 4 |
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; |