summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/device_pm.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-04-03 23:58:01 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-04-08 12:54:25 +0200
commitfbc9418f099d457b91bf14aef8c4bfc498bb2437 (patch)
tree78e73af4dacf9cbf86dad2df5a4fdd10c0f71834 /drivers/acpi/device_pm.c
parent15ade5d2e7775667cf191cf2f94327a4889f8b9d (diff)
downloadblackbird-op-linux-fbc9418f099d457b91bf14aef8c4bfc498bb2437.tar.gz
blackbird-op-linux-fbc9418f099d457b91bf14aef8c4bfc498bb2437.zip
ACPI: PM: Print debug messages when enabling GPEs for wakeup
In sufficiently complicated GPE configurations it is hard to determine which GPE could be the source of system wakeup from a sleep state, so make __acpi_device_wakeup_enable() print that information to the kernel log if debugging is enabled. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/device_pm.c')
-rw-r--r--drivers/acpi/device_pm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c
index 824ae985ad93..5b50f884712c 100644
--- a/drivers/acpi/device_pm.c
+++ b/drivers/acpi/device_pm.c
@@ -728,6 +728,9 @@ static int __acpi_device_wakeup_enable(struct acpi_device *adev,
goto out;
}
+ acpi_handle_debug(adev->handle, "GPE%2X enabled for wakeup\n",
+ (unsigned int)wakeup->gpe_number);
+
inc:
wakeup->enable_count++;
OpenPOWER on IntegriCloud