acpi/cpu-hotplug: introduce helper function to keep bit setting in one place
commitcc43364de7773c9838cedf8f461b7788b8b4fd8e
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Wed, 22 Oct 2014 03:24:32 +0000 (22 11:24 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 2 Nov 2014 11:44:12 +0000 (2 13:44 +0200)
tree2779edc1c7fb9d61d1080eb6ac27e4ccd463329c
parent411b5db8e51108f023d02ba7e37c6e5e2294b337
acpi/cpu-hotplug: introduce helper function to keep bit setting in one place

Introduce helper function acpi_set_cpu_present_bit() to simplify acpi_cpu_plug_cb
and acpi_cpu_hotplug_init, so that we can keep bit setting in one place.

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
hw/acpi/cpu_hotplug.c