mm, show_mem: suppress page counts in non-blockable contexts
[pandora-kernel.git] / arch / unicore32 / mm / init.c
index 3b379cd..d1af4ed 100644 (file)
@@ -65,6 +65,9 @@ void show_mem(unsigned int filter)
        printk(KERN_DEFAULT "Mem-info:\n");
        show_free_areas(filter);
 
+       if (filter & SHOW_MEM_FILTER_PAGE_COUNT)
+               return;
+
        for_each_bank(i, mi) {
                struct membank *bank = &mi->bank[i];
                unsigned int pfn1, pfn2;