Revert "driver/power: Add debug logs"

This prints an enormous amount of messages to dmesg on every
suspend/resume event, wasting CPU cycles and pushing useful messages out
of the log buffer.

This reverts commit cb25c19c66.

Change-Id: I095d22323c6c48a6b208920f4dad327895c8b0e1
This commit is contained in:
Tommaso Fonda authored and Michael Bestas committed 2024-02-13 19:01:44 +02:00
1 parent d668db90e5
commit 4aba959841
1 file changed
+2 -2
+2 -2
View File
@@ -438,7 +438,7 @@ static pm_callback_t pm_noirq_op(const struct dev_pm_ops *ops, pm_message_t stat
static void pm_dev_dbg(struct device *dev, pm_message_t state, const char *info) static void pm_dev_dbg(struct device *dev, pm_message_t state, const char *info)
{ {
dev_info(dev, "%s%s%s\n", info, pm_verb(state.event), dev_dbg(dev, "%s%s%s\n", info, pm_verb(state.event),
((state.event & PM_EVENT_SLEEP) && device_may_wakeup(dev)) ? ((state.event & PM_EVENT_SLEEP) && device_may_wakeup(dev)) ?
", may wakeup" : ""); ", may wakeup" : "");
} }
@@ -464,7 +464,7 @@ static void dpm_show_time(ktime_t starttime, pm_message_t state, int error,
if (usecs == 0) if (usecs == 0)
usecs = 1; usecs = 1;
pr_info("%s%s%s of devices %s after %ld.%03ld msecs\n", pm_pr_dbg("%s%s%s of devices %s after %ld.%03ld msecs\n",
info ?: "", info ? " " : "", pm_verb(state.event), info ?: "", info ? " " : "", pm_verb(state.event),
error ? "aborted" : "complete", error ? "aborted" : "complete",
usecs / USEC_PER_MSEC, usecs % USEC_PER_MSEC); usecs / USEC_PER_MSEC, usecs % USEC_PER_MSEC);