]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/base/cpu.c
drivers/base/cpu.c: fix the output from /sys/devices/system/cpu/offline
[~shefty/rdma-dev.git] / drivers / base / cpu.c
index f35719aab3c1f38f046a118e8326d6022a51e2cf..251acea3d35986dc13f3b5f8423eb803d37508f4 100644 (file)
@@ -186,7 +186,7 @@ static ssize_t print_cpus_offline(struct sysdev_class *class,
        /* display offline cpus < nr_cpu_ids */
        if (!alloc_cpumask_var(&offline, GFP_KERNEL))
                return -ENOMEM;
-       cpumask_complement(offline, cpu_online_mask);
+       cpumask_andnot(offline, cpu_possible_mask, cpu_online_mask);
        n = cpulist_scnprintf(buf, len, offline);
        free_cpumask_var(offline);