summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir D. Seleznev <vseleznv@altlinux.org>2018-09-01 00:51:15 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-09-10 06:07:06 -0400
commit3bb756449b2ddca8e059d011af2e732c857c61d7 (patch)
tree8813d31a9fd9d6247b7b07b1e80c2afca0731caf
parent11da3a7f84f19c26da6f86af878298694ede0804 (diff)
PM / hibernate: Documentation: fix image_size default value
This commit updates the default value of /sys/power/image_size in the documentation. Since ac5c24ec1e983313ef0015258fba6f630e54e7cn the `image_size' value is set to about 2/5 of RAM, according to kernel/power/snapshot.c: image_size = ((totalram_pages * 2) / 5) * PAGE_SIZE; but this change was not reflected everywhere in the documentation. Signed-off-by: Vladimir D. Seleznev <vseleznv@altlinux.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--Documentation/ABI/testing/sysfs-power2
-rw-r--r--Documentation/power/swsusp.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/ABI/testing/sysfs-power b/Documentation/ABI/testing/sysfs-power
index 2f813d644c69..18b7dc929234 100644
--- a/Documentation/ABI/testing/sysfs-power
+++ b/Documentation/ABI/testing/sysfs-power
@@ -99,7 +99,7 @@ Description:
99 this file, the suspend image will be as small as possible. 99 this file, the suspend image will be as small as possible.
100 100
101 Reading from this file will display the current image size 101 Reading from this file will display the current image size
102 limit, which is set to 500 MB by default. 102 limit, which is set to around 2/5 of available RAM by default.
103 103
104What: /sys/power/pm_trace 104What: /sys/power/pm_trace
105Date: August 2006 105Date: August 2006
diff --git a/Documentation/power/swsusp.txt b/Documentation/power/swsusp.txt
index cc87adf44c0a..236d1fb13640 100644
--- a/Documentation/power/swsusp.txt
+++ b/Documentation/power/swsusp.txt
@@ -56,7 +56,7 @@ If you want to limit the suspend image size to N bytes, do
56 56
57echo N > /sys/power/image_size 57echo N > /sys/power/image_size
58 58
59before suspend (it is limited to 500 MB by default). 59before suspend (it is limited to around 2/5 of available RAM by default).
60 60
61. The resume process checks for the presence of the resume device, 61. The resume process checks for the presence of the resume device,
62if found, it then checks the contents for the hibernation image signature. 62if found, it then checks the contents for the hibernation image signature.