]> git.baikalelectronics.ru Git - kernel.git/commit
PM: sleep: Avoid using pr_cont() in the tasks freezing code
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 1 Dec 2022 18:33:09 +0000 (19:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Mar 2023 10:52:23 +0000 (11:52 +0100)
commitc6f8c74083531e170a11c801e69214cf181bb77f
tree6458247c331919f9e886100fc655d9d82627ece1
parentcf836f53b143c075dd9bec1b8dd7403ab90c3a5f
PM: sleep: Avoid using pr_cont() in the tasks freezing code

commit a449dfbfc0894676ad0aa1873383265047529e3a upstream.

Using pr_cont() in the tasks freezing code related to system-wide
suspend and hibernation is problematic, because the continuation
messages printed there are susceptible to interspersing with other
unrelated messages which results in output that is hard to
understand.

Address this issue by modifying try_to_freeze_tasks() to print
messages that don't require continuations and adjusting its
callers accordingly.

Reported-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Cc: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/power/process.c