Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI / PM: Add debug statements to acpi_pm_notify_handler()

Add statements to trace invocations of the ACPI PM notify handler
and the work functions called by it.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

+7 -1
+7 -1
drivers/acpi/device_pm.c
··· 401 401 if (val != ACPI_NOTIFY_DEVICE_WAKE) 402 402 return; 403 403 404 + acpi_handle_debug(handle, "Wake notify\n"); 405 + 404 406 adev = acpi_bus_get_acpi_device(handle); 405 407 if (!adev) 406 408 return; ··· 411 409 412 410 if (adev->wakeup.flags.notifier_present) { 413 411 pm_wakeup_ws_event(adev->wakeup.ws, 0, acpi_s2idle_wakeup()); 414 - if (adev->wakeup.context.func) 412 + if (adev->wakeup.context.func) { 413 + acpi_handle_debug(handle, "Running %pF for %s\n", 414 + adev->wakeup.context.func, 415 + dev_name(adev->wakeup.context.dev)); 415 416 adev->wakeup.context.func(&adev->wakeup.context); 417 + } 416 418 } 417 419 418 420 mutex_unlock(&acpi_pm_notifier_lock);