show isolated cpus in sysfs
authorRik van Riel <riel@redhat.com>
Fri, 24 Apr 2015 19:24:27 +0000 (15:24 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 May 2015 07:15:06 +0000 (00:15 -0700)
commit59f30abe94bff50636c8cad45207a01fdcb2ee49
treede7d08069d48a1a0e7284530de7be26539c1dcdd
parente26081808edadfd257c6c9d81014e3b25e9a6118
show isolated cpus in sysfs

After system bootup, there is no totally reliable way to see
which CPUs are isolated, because the kernel may modify the
CPUs specified on the isolcpus= kernel command line option.

Export the CPU list that actually got isolated in sysfs,
specifically in the file /sys/devices/system/cpu/isolated

This can be used by system management tools like libvirt,
openstack, and others to ensure proper placement of tasks.

Suggested-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Rik van Riel <riel@redhat.com>
Acked-by: Mike Galbraith <umgwanakikbuti@gmail.com>
Acked-by: Chris Metcalf <cmetcalf@ezchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/cpu.c