[patch 05/24] ppc: remove redundant display of free swap space in show_mem()

akpm at linux-foundation.org akpm at linux-foundation.org
Sat Mar 29 08:21:10 EST 2008


From: Johannes Weiner <hannes at saeurebad.de>

show_mem() has no need to print the amount of free swap space manually because
show_free_areas() does this already and is called by the former.

The two outputs only differ in text formatting:

  printk("Free swap  = %lukB\n", ...);
  printk("Free swap:       %6ldkB\n", ...);

Signed-off-by: Johannes Weiner <hannes at saeurebad.de>
Cc: Paul Mackerras <paulus at samba.org>
Cc: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
---

 arch/ppc/mm/init.c |    1 -
 1 file changed, 1 deletion(-)

diff -puN arch/ppc/mm/init.c~ppc-remove-redundant-display-of-free-swap-space-in-show_mem arch/ppc/mm/init.c
--- a/arch/ppc/mm/init.c~ppc-remove-redundant-display-of-free-swap-space-in-show_mem
+++ a/arch/ppc/mm/init.c
@@ -109,7 +109,6 @@ void show_mem(void)
 
 	printk("Mem-info:\n");
 	show_free_areas();
-	printk("Free swap:       %6ldkB\n", nr_swap_pages<<(PAGE_SHIFT-10));
 	i = max_mapnr;
 	while (i-- > 0) {
 		total++;
_



More information about the Linuxppc-dev mailing list