PM: sleep: Add pm_debug_messages kernel command line option
authorChen Yu <yu.c.chen@intel.com>
Thu, 2 Apr 2020 07:56:52 +0000 (15:56 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 2 Apr 2020 13:29:56 +0000 (15:29 +0200)
commitdb96a75946d3a2a41092c83992e65f727cd35529
tree78ed92834bbd1aea7e3d272af8d3cb44c50bf237
parentb5252a6cbbdaefb2648abe8807beda8a28ec7603
PM: sleep: Add pm_debug_messages kernel command line option

Debug messages from the system suspend/hibernation infrastructure
are disabled by default, and can only be enabled after the system
has boot up via /sys/power/pm_debug_messages.

This makes the hibernation resume hard to track as it involves system
boot up across hibernation.  There's no chance for software_resume()
to track the resume process, for example.

Add a kernel command line option to set pm_debug_messages during
boot up.

Signed-off-by: Chen Yu <yu.c.chen@intel.com>
[ rjw: Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/admin-guide/kernel-parameters.txt
kernel/power/main.c