We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9852d85 commit 3c891f7Copy full SHA for 3c891f7
arch/sh/kernel/cpu/proc.c
@@ -132,7 +132,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
132
133
static void *c_start(struct seq_file *m, loff_t *pos)
134
{
135
- return *pos < NR_CPUS ? cpu_data + *pos : NULL;
+ return *pos < nr_cpu_ids ? cpu_data + *pos : NULL;
136
}
137
static void *c_next(struct seq_file *m, void *v, loff_t *pos)
138
0 commit comments