diff --git a/kernel/rcutree.c b/kernel/rcutree.c index 6194402ec853b6cf4dbd25a85bb704b004b8073a..8b9496fee23560ef9a6fab48c7ba3f69b42901d3 100644 --- a/kernel/rcutree.c +++ b/kernel/rcutree.c @@ -2723,7 +2723,7 @@ static void __init rcu_init_levelspread(struct rcu_state *rsp) int cprv; int i; - cprv = NR_CPUS; + cprv = nr_cpu_ids; for (i = rcu_num_lvls - 1; i >= 0; i--) { ccur = rsp->levelcnt[i]; rsp->levelspread[i] = (cprv + ccur - 1) / ccur;