drivers/base/cpu.c: fix the output from /sys/devices/system/cpu/offline
commit61fddafd7867bb656f034c0434492784f680bad8
authorJan Beulich <JBeulich@novell.com>
Tue, 27 Apr 2010 21:01:20 +0000 (27 14:01 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:15 +0000 (5 11:22 -0700)
tree92592a7b3601005777dcb6a707de76e0c97a7be1
parent8ab0ea3ee657ad1235590c3e43cf9d4fbb4de105
drivers/base/cpu.c: fix the output from /sys/devices/system/cpu/offline

commit cdc6e3d3968052cebb2f2ddcd742bff29fbd1a90 upstream.

Without CONFIG_CPUMASK_OFFSTACK, simply inverting cpu_online_mask leads
to CPUs beyond nr_cpu_ids to be displayed twice and CPUs not even
possible to be displayed as offline.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/cpu.c