ACPI: scan: Avoid unnecessary second pass in acpi_bus_scan()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 14 Dec 2020 20:32:44 +0000 (21:32 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Dec 2020 16:51:49 +0000 (17:51 +0100)
commit0de7fb7c8687048299305529d17f6a1e98ae658c
treefa46b733c61fd7f3033c8bda6b2f92cde3421bae
parent71da201f38dfb0c3a3d33bbe3168ea9112299dde
ACPI: scan: Avoid unnecessary second pass in acpi_bus_scan()

If there are no devices whose enumeration has been deferred after
the first pass in acpi_bus_scan(), the second pass is not necssary,
so avoid it with the help of a new static variable.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/acpi/scan.c