linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / arch / xtensa / mm / init.c
index 660ef05..5a91d6c 100644 (file)
@@ -15,6 +15,7 @@
  * Kevin Chea
  */
 
+#include <linux/config.h>
 #include <linux/init.h>
 #include <linux/signal.h>
 #include <linux/sched.h>
@@ -271,7 +272,7 @@ free_reserved_mem(void *start, void *end)
 {
        for (; start < end; start += PAGE_SIZE) {
                ClearPageReserved(virt_to_page(start));
-               init_page_count(virt_to_page(start));
+               set_page_count(virt_to_page(start), 1);
                free_page((unsigned long)start);
                totalram_pages++;
        }