]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/base/cpu.c: fix the output from /sys/devices/system/cpu/offline
authorJan Beulich <JBeulich@novell.com>
Tue, 27 Apr 2010 21:01:20 +0000 (14:01 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 May 2010 16:37:28 +0000 (09:37 -0700)
commit1347bf5347b561ad65d440a8b785edd5f7012fd2
tree874fbded0f516a84112200080fb22d28920e6362
parentda93abd79a514a886c651b0b4e61b79ecd565d2a
drivers/base/cpu.c: fix the output from /sys/devices/system/cpu/offline

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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/cpu.c