Skip to content
Commit 59f30abe authored by Rik van Riel's avatar Rik van Riel Committed by Greg Kroah-Hartman
Browse files

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: default avatarLi Zefan <lizefan@huawei.com>
Signed-off-by: default avatarRik van Riel <riel@redhat.com>
Acked-by: default avatarMike Galbraith <umgwanakikbuti@gmail.com>
Acked-by: default avatarChris Metcalf <cmetcalf@ezchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e2608180
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment