Rafael J. Wysocki 1c10070a55 i386: do not restore reserved memory after hibernation
On some systems the ACPI NVS area is located in the first 1 MB of RAM and
it is overwritten by the i386 code during the restore after hibernation.
This confuses the ACPI platform firmware that doesn't update the AC adapter
status appropriately as a result
(http://bugzilla.kernel.org/show_bug.cgi?id=7995).

The solution is to register the reserved memory in the first 1 MB as
'nosave', so that swsusp doesn't touch it during the restore.  Also, this
has been done on x86_64 for a long time now, so this patch makes the i386
restore code behave like the x86_64 one.

[akpm@linux-foundation.org: build fix]
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-21 18:37:12 -07:00
..
2007-07-21 18:37:10 -07:00
2005-04-16 15:20:36 -07:00
2005-09-07 16:57:21 -07:00
2006-12-08 08:28:39 -08:00
2007-07-19 14:37:05 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-03-05 07:57:52 -08:00
2007-05-02 19:27:15 +02:00
2007-04-25 22:23:33 -07:00
2007-06-20 14:27:25 -07:00
2006-01-18 19:20:31 -08:00
2005-04-16 15:20:36 -07:00
2007-07-17 10:23:11 -07:00
2007-07-21 18:37:09 -07:00
2007-07-21 18:37:08 -07:00
2005-04-16 15:20:36 -07:00
2007-07-16 09:05:40 -07:00
2007-03-05 07:57:50 -08:00
2006-01-10 08:01:34 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-07-18 08:47:42 -07:00
2005-04-16 15:20:36 -07:00
2007-07-19 10:04:44 -07:00
2005-04-16 15:20:36 -07:00
2005-05-26 16:16:16 -07:00
2005-04-16 15:20:36 -07:00
2006-10-03 08:03:41 -07:00
2005-04-16 15:20:36 -07:00
2006-02-15 15:32:22 -08:00
2007-07-18 08:47:41 -07:00
2005-04-16 15:20:36 -07:00
2007-05-09 12:30:57 -07:00
2007-02-16 08:13:59 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-05-02 19:27:20 +02:00
2005-04-16 15:20:36 -07:00
2007-07-21 18:37:09 -07:00
2007-07-18 08:47:42 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-07-11 16:02:11 -07:00
2007-07-16 09:05:36 -07:00
2007-07-16 09:05:36 -07:00
2007-05-11 08:29:34 -07:00
2007-02-13 13:26:21 +01:00
2005-04-16 15:20:36 -07:00
2007-07-21 18:37:10 -07:00
2005-04-16 15:20:36 -07:00
2006-09-26 10:52:32 +02:00
2007-05-02 19:02:34 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-05-02 19:27:16 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-03-05 07:57:52 -08:00
2005-04-16 15:20:36 -07:00
2007-03-05 07:57:51 -08:00
2007-07-19 10:04:52 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-12-15 08:47:51 -08:00
2005-04-16 15:20:36 -07:00
2006-10-12 22:25:03 -05:00
2007-07-18 08:47:42 -07:00
2007-03-05 07:57:52 -08:00
2005-09-05 00:06:11 -07:00