Messages in this thread Patch in this message | | | From | Johannes Weiner <> | Subject | [RFC 08/22] h8300: Use generic show_mem() | Date | Wed, 2 Apr 2008 22:40:14 +0200 |
| |
Signed-off-by: Johannes Weiner <hannes@saeurebad.de>
diff --git a/arch/h8300/Kconfig b/arch/h8300/Kconfig index 70e63fc..085dc6e 100644 --- a/arch/h8300/Kconfig +++ b/arch/h8300/Kconfig @@ -22,9 +22,6 @@ config ZONE_DMA bool default y -config HAVE_ARCH_SHOW_MEM - def_bool y - config FPU bool default n diff --git a/arch/h8300/mm/init.c b/arch/h8300/mm/init.c index e4f4199..82cc54e 100644 --- a/arch/h8300/mm/init.c +++ b/arch/h8300/mm/init.c @@ -64,33 +64,6 @@ unsigned long empty_zero_page; extern unsigned long rom_length; -void show_mem(void) -{ - unsigned long i; - int free = 0, total = 0, reserved = 0, shared = 0; - int cached = 0; - - printk("\nMem-info:\n"); - show_free_areas(); - i = max_mapnr; - while (i-- > 0) { - total++; - if (PageReserved(mem_map+i)) - reserved++; - else if (PageSwapCache(mem_map+i)) - cached++; - else if (!page_count(mem_map+i)) - free++; - else - shared += page_count(mem_map+i) - 1; - } - printk("%d pages of RAM\n",total); - printk("%d free pages\n",free); - printk("%d reserved pages\n",reserved); - printk("%d pages shared\n",shared); - printk("%d pages swap cached\n",cached); -} - extern unsigned long memory_start; extern unsigned long memory_end; @@ -228,4 +201,3 @@ free_initmem() (int)(addr - PAGE_SIZE)); #endif } - -- 1.5.2.2
| |