PM / Hibernate: Print hibernation/thaw progress indicator one line at a time.
authorBojan Smojver <bojan@rexursive.com>
Thu, 21 Jun 2012 20:27:24 +0000 (22:27 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 1 Jul 2012 11:31:23 +0000 (13:31 +0200)
commitd8150d350408de6fb2b9ee7b7625ae8e2bb7aa4a
tree4bc399c1850a08b8b2573f01a23146e2fa2adeea
parentb2df1d4f8b95d9d1e3f064cef02fc5c5116b05cf
PM / Hibernate: Print hibernation/thaw progress indicator one line at a time.

With the introduction of suspend to both into in-kernel hibernation
code, dmesg was getting polluted with backspace characters printed as
part of image saving progress indicator. This patch introduces printing
of progress indicator on image save/load every 10% and one line at a
time. As an additional benefit, all other messages emitted by the kernel
during hibernation/thaw should now print cleanly as well.

Signed-off-by: Bojan Smojver <bojan@rexursive.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/power/swap.c