Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2ad47ff authored by Mike Travis's avatar Mike Travis Committed by Ingo Molnar
Browse files

NR_CPUS: Replace NR_CPUS in arch/x86/kernel/cpu/proc.c



  * Use nr_cpu_ids instead of NR_CPUS to limit traversal of cpu online map.

Signed-off-by: default avatarMike Travis <travis@sgi.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 6bca67f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -160,7 +160,7 @@ static void *c_start(struct seq_file *m, loff_t *pos)
{
{
	if (*pos == 0)	/* just in case, cpu 0 is not the first */
	if (*pos == 0)	/* just in case, cpu 0 is not the first */
		*pos = first_cpu(cpu_online_map);
		*pos = first_cpu(cpu_online_map);
	if ((*pos) < NR_CPUS && cpu_online(*pos))
	if ((*pos) < nr_cpu_ids && cpu_online(*pos))
		return &cpu_data(*pos);
		return &cpu_data(*pos);
	return NULL;
	return NULL;
}
}