ACPI / hotplug / PCI: Do not queue up event handling work items in vain
commit5c8d0e1dc475f0f35b5a774c92c68c3f7dbd3f5f
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 13 Jul 2013 21:27:26 +0000 (13 23:27 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Jul 2013 02:00:25 +0000 (23 04:00 +0200)
treea852b2bf07e33f5e171aa2bf7f7747b631cf591b
parentad21d2d046a8a6bbf1b10c04770ec835a4e379e6
ACPI / hotplug / PCI: Do not queue up event handling work items in vain

Modify handle_hotplug_event() to avoid queing up the execution of
handle_hotplug_event_work_fn() as a work item on kacpi_hotplug_wq
for non-hotplug events, such as ACPI_NOTIFY_DEVICE_WAKE.  Move
the code printing diagnostic messages for those events into
handle_hotplug_event().

In addition to that, remove the bogus comment about how the core
should distinguish between hotplug and non-hotplug events and
queue them up on different workqueues.  The core clearly cannot
know in advance what events will be interesting to the given
caller of acpi_install_notify_handler().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pci/hotplug/acpiphp_glue.c