]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/mm/pgtable.c
Merge branch 'linus' into tracing/mmiotrace
[linux-2.6-omap-h63xx.git] / arch / mips / mm / pgtable.c
index 3fe94202da8ca7c21f1d8d973537aeb18b663711..7dfa579ab24c61761db8446c11fcb63e2ab6c5b8 100644 (file)
@@ -1,4 +1,3 @@
-#include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/swap.h>
@@ -13,9 +12,10 @@ void show_mem(void)
 
        printk("Mem-info:\n");
        show_free_areas();
-       printk("Free swap:       %6ldkB\n", nr_swap_pages<<(PAGE_SHIFT-10));
        pfn = max_mapnr;
        while (pfn-- > 0) {
+               if (!pfn_valid(pfn))
+                       continue;
                page = pfn_to_page(pfn);
                total++;
                if (PageHighMem(page))
@@ -28,9 +28,9 @@ void show_mem(void)
                        shared += page_count(page) - 1;
        }
        printk("%d pages of RAM\n", total);
-       printk("%d pages of HIGHMEM\n",highmem);
-       printk("%d reserved pages\n",reserved);
-       printk("%d pages shared\n",shared);
-       printk("%d pages swap cached\n",cached);
+       printk("%d pages of HIGHMEM\n", highmem);
+       printk("%d reserved pages\n", reserved);
+       printk("%d pages shared\n", shared);
+       printk("%d pages swap cached\n", cached);
 #endif
 }