|
@@ -186,7 +186,7 @@ static ssize_t print_cpus_offline(struct sysdev_class *class,
|
|
/* display offline cpus < nr_cpu_ids */
|
|
/* display offline cpus < nr_cpu_ids */
|
|
if (!alloc_cpumask_var(&offline, GFP_KERNEL))
|
|
if (!alloc_cpumask_var(&offline, GFP_KERNEL))
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
- cpumask_complement(offline, cpu_online_mask);
|
|
|
|
|
|
+ cpumask_andnot(offline, cpu_possible_mask, cpu_online_mask);
|
|
n = cpulist_scnprintf(buf, len, offline);
|
|
n = cpulist_scnprintf(buf, len, offline);
|
|
free_cpumask_var(offline);
|
|
free_cpumask_var(offline);
|
|
|
|
|