linux-stable/kernel/power
xiongxin 4973f861c3 PM: hibernate: Fix mistake in kerneldoc comment
[ Upstream commit 6e5d7300cb ]

The actual maximum image size formula in hibernate_preallocate_memory()
is as follows:

max_size = (count - (size + PAGES_FOR_IO)) / 2
	    - 2 * DIV_ROUND_UP(reserved_size, PAGE_SIZE);

but the one in the kerneldoc comment of the function is different and
incorrect.

Fixes: ddeb648708 ("PM / Hibernate: Add sysfs knob to control size of memory for drivers")
Signed-off-by: xiongxin <xiongxin@kylinos.cn>
[ rjw: Subject and changelog rewrite ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:25:42 +01:00
..
autosleep.c
console.c
energy_model.c PM: EM: convert power field to micro-Watts precision and align drivers 2022-07-15 19:17:30 +02:00
hibernate.c PM: hibernate: Allow hybrid sleep to work with s2idle 2022-11-04 00:00:31 +09:00
Kconfig pm/sleep: Add PM_USERSPACE_AUTOSLEEP Kconfig 2022-07-01 10:39:20 +02:00
main.c cxl for 5.19 2022-05-27 21:24:19 -07:00
Makefile PM: sleep: Narrow down -DDEBUG on kernel/power/ files 2022-04-13 16:34:01 +02:00
power.h PM: hibernate: Allow ACPI hardware signature to be honoured 2021-12-08 16:06:10 +01:00
poweroff.c
process.c PM: sleep: Narrow down -DDEBUG on kernel/power/ files 2022-04-13 16:34:01 +02:00
qos.c PM: QoS: Add check to make sure CPU freq is non-negative 2022-07-26 20:48:33 +02:00
snapshot.c PM: hibernate: Fix mistake in kerneldoc comment 2022-12-31 13:25:42 +01:00
suspend.c PM: CXL: Disable suspend 2022-04-22 16:09:42 -07:00
suspend_test.c PM: suspend: fix return value of __setup handler 2022-03-01 18:55:07 +01:00
swap.c PM: Use the enum req_op and blk_opf_t types 2022-07-14 12:14:33 -06:00
user.c PM: hibernate: defer device probing when resuming from hibernation 2022-07-26 20:39:01 +02:00
wakelock.c PM: wakeup: simplify the output logic of pm_show_wakelocks() 2022-01-25 18:27:02 +01:00