sysctl: restrict write access to dmesg_restrict
[pandora-kernel.git] / lib / show_mem.c
index fdc77c8..d8d602b 100644 (file)
@@ -9,14 +9,14 @@
 #include <linux/nmi.h>
 #include <linux/quicklist.h>
 
-void show_mem(void)
+void __show_mem(unsigned int filter)
 {
        pg_data_t *pgdat;
        unsigned long total = 0, reserved = 0, shared = 0,
                nonshared = 0, highmem = 0;
 
        printk("Mem-Info:\n");
-       show_free_areas();
+       __show_free_areas(filter);
 
        for_each_online_pgdat(pgdat) {
                unsigned long i, flags;
@@ -61,3 +61,8 @@ void show_mem(void)
                quicklist_total_size());
 #endif
 }
+
+void show_mem(void)
+{
+       __show_mem(0);
+}