Skip to content

Commit

Permalink
[ACPI] hotplug Processor consideration in acpi_bus_add()
Browse files Browse the repository at this point in the history
Signed-off-by: Keiichiro Tokunaga <tokunaga.keiich@jp.fujitsu.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Keiichiro Tokunaga authored and Len Brown committed Jul 12, 2005
1 parent 8de7a63 commit 6940fab
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,13 +1051,15 @@ acpi_bus_add (
/*
* Status
* ------
* See if the device is present. We always assume that non-Device()
* objects (e.g. thermal zones, power resources, processors, etc.) are
* present, functioning, etc. (at least when parent object is present).
* Note that _STA has a different meaning for some objects (e.g.
* power resources) so we need to be careful how we use it.
* See if the device is present. We always assume that non-Device
* and non-Processor objects (e.g. thermal zones, power resources,
* etc.) are present, functioning, etc. (at least when parent object
* is present). Note that _STA has a different meaning for some
* objects (e.g. power resources) so we need to be careful how we use
* it.
*/
switch (type) {
case ACPI_BUS_TYPE_PROCESSOR:
case ACPI_BUS_TYPE_DEVICE:
result = acpi_bus_get_status(device);
if (ACPI_FAILURE(result) || !device->status.present) {
Expand Down

0 comments on commit 6940fab

Please sign in to comment.