OSDN Git Service

PM: hibernate: Add more logging on hibernation failure
authorLuigi Semenzato <semenzato@google.com>
Thu, 2 Jan 2020 23:19:40 +0000 (15:19 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 7 Jan 2020 12:31:12 +0000 (13:31 +0100)
commit7a7b99bf801efd09b3202bf5b6216d70cb1363f1
tree4e8bb696b15ee4aa72432d454431b5b9ea3ec619
parent809ed78a832df8b4ef81fee03570566c8f088f3a
PM: hibernate: Add more logging on hibernation failure

Hibernation fails when the kernel cannot allocate enough memory
to copy all pages of RAM in use.

Ensure that the failure reason is clearly logged, and clearly
attributable to the hibernation module.

Signed-off-by: Luigi Semenzato <semenzato@google.com>
[ rjw: Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/hibernate.c
kernel/power/snapshot.c