]> 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)
commit9b72bdff1cf2034679d8e5bf90163df7d0565a6b
tree6458247c331919f9e886100fc655d9d82627ece1
parent3b1661eb4f1275c88b17cb884885da6272bb752a
PM: sleep: Avoid using pr_cont() in the tasks freezing code

commit 63e83785ac1ea5f55545660fc1ad7b24df30c957 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