PM / Hibernate: Make default image size depend on total RAM size
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 20 Sep 2010 17:44:56 +0000 (19:44 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 16 Oct 2010 23:57:43 +0000 (01:57 +0200)
commitac5c24ec1e983313ef0015258fba6f630e54e7cf
tree0bd6e99ece68f27b322033fd2ecaea3fa2d9e369
parent266f1a25eff5ff98c498d7754a419aacfd88f71c
PM / Hibernate: Make default image size depend on total RAM size

The default hibernation image size is currently hard coded and euqal
to 500 MB, which is not a reasonable default on many contemporary
systems.  Make it equal 2/5 of the total RAM size (this is slightly
below the maximum, i.e. 1/2 of the total RAM size, and seems to be
generally suitable).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Tested-by: M. Vefa Bicakci <bicave@superonline.com>
Documentation/power/interface.txt
kernel/power/main.c
kernel/power/power.h
kernel/power/snapshot.c