ACPI: PM: Adjust messages regarding postponed ACPI PM
Rafael J. Wysocki
maintainerPATCH 1/1 ACPI: PM: Adjust messages regarding postponed ACPI PM
From: Rafael J. Wysocki <[email protected]>
The debug messages added by commit f7599be2bb76 ("ACPI: PM: postpone bringing devices to D0 unless we need them") in acpi_subsys_resume_early() and acpi_subsys_resume() are not quite accurate because what is postponed is not just a transition to D0, but also an adjustment of the device's wakeup setting (which may involve disabling a GPE among other things). Moreover, these messages don't even mention ACPI.
Rephrase them and adjust the style to match other messages in device_pm.c.
--- drivers/acpi/device_pm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/acpi/device_pm.c +2 -2
@@ -1251,7 +1251,7 @@ static int acpi_subsys_resume_early(strureturn 0 ;if (pm && !pm->resume_early) { -dev_dbg (dev,"postponing D0 transition to normal resume stage\n" ); +dev_dbg (dev,"Postponing ACPI PM to normal resume stage\n" );return 0 ; }
@@ -1273,7 +1273,7 @@ static int acpi_subsys_resume(struct devint ret =0 ;if (!dev_pm_skip_resume (dev) && pm && !pm->resume_early) { -dev_dbg (dev,"executing postponed D0 transition\n" ); +dev_dbg (dev,"Applying postponed ACPI PM\n" ); ret =acpi_dev_resume (dev); }
Quoted 9 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
The debug messages added by commit
f7599be2bb76("ACPI: PM: postpone bringing devices to D0 unless we need them") inacpi_subsys_resume_early()andacpi_subsys_resume()are not quite accurate because what is postponed is not just a transition to D0, but also an adjustment of the device's wakeup setting (which may involve disabling a GPE among other things). Moreover, these messages don't even mention ACPI.
Quoted 3 lines
Rephrase them and adjust the style to match other messages in
device_pm.c.Signed-off-by Rafael J. Wysocki <[email protected]>
Makes sense to me.
Quoted 16 lines
--- drivers/acpi/device_pm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/acpi/device_pm.c +1
-1@@ -1251,7 +1251,7 @@ static int acpi_subsys_resume_early(strureturn 0 ;if (pm && !pm->resume_early) { -dev_dbg (dev,"postponing D0 transition to normal resume stage\n" ); +dev_dbg (dev,"Postponing ACPI PM to normal resume stage\n" );return 0 ; }
drivers/acpi/device_pm.c static int acpi_subsys_resume(struct dev · line 1279
Quoted 8 lines
drivers/acpi/device_pm.c +1
-1@@ -1273,7 +1273,7 @@ static int acpi_subsys_resume(struct devint ret =0 ;if (!dev_pm_skip_resume (dev) && pm && !pm->resume_early) { -dev_dbg (dev,"executing postponed D0 transition\n" ); +dev_dbg (dev,"Applying postponed ACPI PM\n" ); ret =acpi_dev_resume (dev); }
Thanks.
Signature · 1 line
Dmitry