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

syscore: Use pm_pr_dbg() for syscore_{suspend,resume}()

The debug messages about what syscore suspend/resume hooks are called
are only present if you have initcall debugging enabled. Let's move
these messages to pm_pr_dbg() so that the syscore PM messages are
included along with all the other PM debugging info that can be seen
during suspend/resume debugging.

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20200806214633.204472-1-swboyd@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Stephen Boyd and committed by
Greg Kroah-Hartman
81b14224 e3aa745f

+3 -5
+3 -5
drivers/base/syscore.c
··· 50 50 int ret = 0; 51 51 52 52 trace_suspend_resume(TPS("syscore_suspend"), 0, true); 53 - pr_debug("Checking wakeup interrupts\n"); 53 + pm_pr_dbg("Checking wakeup interrupts\n"); 54 54 55 55 /* Return error code if there are any wakeup interrupts pending. */ 56 56 if (pm_wakeup_pending()) ··· 61 61 62 62 list_for_each_entry_reverse(ops, &syscore_ops_list, node) 63 63 if (ops->suspend) { 64 - if (initcall_debug) 65 - pr_info("PM: Calling %pS\n", ops->suspend); 64 + pm_pr_dbg("Calling %pS\n", ops->suspend); 66 65 ret = ops->suspend(); 67 66 if (ret) 68 67 goto err_out; ··· 98 99 99 100 list_for_each_entry(ops, &syscore_ops_list, node) 100 101 if (ops->resume) { 101 - if (initcall_debug) 102 - pr_info("PM: Calling %pS\n", ops->resume); 102 + pm_pr_dbg("Calling %pS\n", ops->resume); 103 103 ops->resume(); 104 104 WARN_ONCE(!irqs_disabled(), 105 105 "Interrupts enabled after %pS\n", ops->resume);