]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - kernel/power/snapshot.c
[PATCH] x86: Move swsusp __pa() dependent code to arch portion
[mv-sheeva.git] / kernel / power / snapshot.c
index fc53ad06812843d346a777711b97a7f4698c76e3..704c25a3ffecff54ab5f1d0405942a8d3c74590d 100644 (file)
@@ -650,17 +650,6 @@ static inline void *saveable_highmem_page(unsigned long pfn) { return NULL; }
 static inline unsigned int count_highmem_pages(void) { return 0; }
 #endif /* CONFIG_HIGHMEM */
 
-/**
- *     pfn_is_nosave - check if given pfn is in the 'nosave' section
- */
-
-static inline int pfn_is_nosave(unsigned long pfn)
-{
-       unsigned long nosave_begin_pfn = __pa(&__nosave_begin) >> PAGE_SHIFT;
-       unsigned long nosave_end_pfn = PAGE_ALIGN(__pa(&__nosave_end)) >> PAGE_SHIFT;
-       return (pfn >= nosave_begin_pfn) && (pfn < nosave_end_pfn);
-}
-
 /**
  *     saveable - Determine whether a non-highmem page should be included in
  *     the suspend image.