This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Thu Apr 25 13:30:06 2024 Delivery-date: Mon, 07 Apr 2008 15:55:54 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759804AbYDGPvY (ORCPT ); Mon, 7 Apr 2008 11:51:24 -0400 Received: from saeurebad.de ([85.214.36.134]:44801 "EHLO saeurebad.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759795AbYDGPvX (ORCPT ); Mon, 7 Apr 2008 11:51:23 -0400 Received: by saeurebad.de (Postfix, from userid 107) id D037C2F003E; Mon, 7 Apr 2008 17:51:18 +0200 (CEST) Received: from localhost (dslb-088-072-173-095.pools.arcor-ip.net [88.72.173.95]) by saeurebad.de (Postfix) with ESMTP id 7B7192F0016; Mon, 7 Apr 2008 17:51:14 +0200 (CEST) X-Mailbox-Line: From hannes@skyscraper.fehenstaub.lan Mon Apr 7 16:42:42 2008 Message-Id: <20080407144242.037850112@skyscraper.fehenstaub.lan> References: <20080407144008.124362640@skyscraper.fehenstaub.lan> User-Agent: quilt/0.46-1 Date: Mon, 07 Apr 2008 16:40:28 +0200 From: Johannes Weiner To: LKML Cc: Miles Bader Subject: [patch 20/22 -v3] v850: Use generic show_mem() Content-Disposition: inline; filename=v850-use-generic-show_mem.patch X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.1.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-Id: X-Mailing-List: linux-kernel@vger.kernel.org X-Pimp-Spam-Score: 0.0 (/) Remove arch-specific show_mem() in favor of the generic version. This also removes the following redundant information display: - free pages, printed in show_free_areas() - pages in swapcache, printed by show_swap_cache_info() where show_mem() calls show_free_areas(), which calls show_swap_cache_info(). Signed-off-by: Johannes Weiner CC: Miles Bader --- Index: tree-linus/arch/v850/Kconfig =================================================================== --- tree-linus.orig/arch/v850/Kconfig +++ tree-linus/arch/v850/Kconfig @@ -79,6 +79,7 @@ config V850 bool default y select HAVE_IDE + select HAVE_GENERIC_SHOW_MEM menu "Processor type and features" Index: tree-linus/arch/v850/kernel/setup.c =================================================================== --- tree-linus.orig/arch/v850/kernel/setup.c +++ tree-linus/arch/v850/kernel/setup.c @@ -298,33 +298,3 @@ init_mem_alloc (unsigned long ram_start, free_area_init_node (0, NODE_DATA(0), zones_size, ADDR_TO_PAGE (PAGE_OFFSET), 0); } - - - -/* Taken from m68knommu */ -void show_mem(void) -{ - unsigned long i; - int free = 0, total = 0, reserved = 0, shared = 0; - int cached = 0; - - printk(KERN_INFO "\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(KERN_INFO "%d pages of RAM\n",total); - printk(KERN_INFO "%d free pages\n",free); - printk(KERN_INFO "%d reserved pages\n",reserved); - printk(KERN_INFO "%d pages shared\n",shared); - printk(KERN_INFO "%d pages swap cached\n",cached); -} -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/