]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/power/hibernate_64.c
pm: rework includes, remove arch ifdefs
[linux-2.6-omap-h63xx.git] / arch / x86 / power / hibernate_64.c
index b542355e0e3433c7c4481fae229b27a1b5d79e18..65fdc86e923fd92175b95bfef56ad1c82d64bc2d 100644 (file)
@@ -14,6 +14,7 @@
 #include <asm/page.h>
 #include <asm/pgtable.h>
 #include <asm/mtrr.h>
+#include <asm/suspend.h>
 
 /* References to section boundaries */
 extern const void __nosave_begin, __nosave_end;
@@ -83,7 +84,7 @@ static int set_up_temporary_mappings(void)
 
        /* Set up the direct mapping from scratch */
        start = (unsigned long)pfn_to_kaddr(0);
-       end = (unsigned long)pfn_to_kaddr(end_pfn);
+       end = (unsigned long)pfn_to_kaddr(max_pfn);
 
        for (; start < end; start = next) {
                pud_t *pud = (pud_t *)get_safe_page(GFP_ATOMIC);