[ACPI] hotplug Processor consideration in acpi_bus_add()
Signed-off-by: Keiichiro Tokunaga <tokunaga.keiich@jp.fujitsu.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
8de7a63b69
commit
6940fabaa3
@ -1051,13 +1051,15 @@ acpi_bus_add (
|
|||||||
/*
|
/*
|
||||||
* Status
|
* Status
|
||||||
* ------
|
* ------
|
||||||
* See if the device is present. We always assume that non-Device()
|
* See if the device is present. We always assume that non-Device
|
||||||
* objects (e.g. thermal zones, power resources, processors, etc.) are
|
* and non-Processor objects (e.g. thermal zones, power resources,
|
||||||
* present, functioning, etc. (at least when parent object is present).
|
* etc.) are present, functioning, etc. (at least when parent object
|
||||||
* Note that _STA has a different meaning for some objects (e.g.
|
* is present). Note that _STA has a different meaning for some
|
||||||
* power resources) so we need to be careful how we use it.
|
* objects (e.g. power resources) so we need to be careful how we use
|
||||||
|
* it.
|
||||||
*/
|
*/
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
case ACPI_BUS_TYPE_PROCESSOR:
|
||||||
case ACPI_BUS_TYPE_DEVICE:
|
case ACPI_BUS_TYPE_DEVICE:
|
||||||
result = acpi_bus_get_status(device);
|
result = acpi_bus_get_status(device);
|
||||||
if (ACPI_FAILURE(result) || !device->status.present) {
|
if (ACPI_FAILURE(result) || !device->status.present) {
|
||||||
|
Loading…
Reference in New Issue
Block a user