|
@@ -507,7 +507,7 @@ static void *c_start(struct seq_file *m, loff_t *pos)
|
|
* way to pass it w/o having to kmalloc/free a 2 byte string.
|
|
* way to pass it w/o having to kmalloc/free a 2 byte string.
|
|
* Encode cpu-id as 0xFFcccc, which is decoded by show routine.
|
|
* Encode cpu-id as 0xFFcccc, which is decoded by show routine.
|
|
*/
|
|
*/
|
|
- return *pos < num_possible_cpus() ? cpu_to_ptr(*pos) : NULL;
|
|
|
|
|
|
+ return *pos < nr_cpu_ids ? cpu_to_ptr(*pos) : NULL;
|
|
}
|
|
}
|
|
|
|
|
|
static void *c_next(struct seq_file *m, void *v, loff_t *pos)
|
|
static void *c_next(struct seq_file *m, void *v, loff_t *pos)
|