ACPI: simplify deferred execution path
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Mon, 31 Aug 2009 22:32:10 +0000 (22:32 +0000)
committerLen Brown <len.brown@intel.com>
Sat, 19 Sep 2009 06:15:05 +0000 (02:15 -0400)
commit9ac6185669d0d277c4082fa92ba8eb2e55534cbf
treeeacaf117ddf71e2b75738cfdcd918572a165943c
parentd26f0528d588e596955bf296a609afe52eafc099
ACPI: simplify deferred execution path

We had two functions, acpi_os_execute_deferred() and
acpi_os_execute_hp_deferred() that differed only in that the
latter did acpi_os_wait_events_complete(NULL) before executing
the deferred function.

This patch consolidates those two functions and uses a flag in
the struct acpi_os_dpc to determine whether to do the wait.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/osl.c