From patchwork Sat Apr 13 15:36:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Liu X-Patchwork-Id: 2441131 X-Patchwork-Delegate: deller@gmx.de Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id D7A9FDFB78 for ; Sat, 13 Apr 2013 15:43:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932463Ab3DMPlk (ORCPT ); Sat, 13 Apr 2013 11:41:40 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:62833 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932156Ab3DMPlh (ORCPT ); Sat, 13 Apr 2013 11:41:37 -0400 Received: by mail-pd0-f177.google.com with SMTP id u11so1874085pdi.36 for ; Sat, 13 Apr 2013 08:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=o1jbBuPYorFBe1rFMlwsUvCX4oGY9DSvcCK4/6Boq5w=; b=nErSOpyjRtsnindoGvXrEGK3ssTHJf29uOx9oS8cXZ35X20oZsEERwZPMslliieqzr /oh688F/BK0rWB1tG/3XSZiIFyD2cX0Fkk8eUcWnC+rufgIrma0qEi8sCpd6VEbu/ogs 0OhrKxToX/wmKGvQQFPkjqV6rUOx2Ka2ijlrUs7LB5yXDli4JxU8Prj1V3Oyfwxuf4N4 Ze8jfwNJ3FuMBPaVtXeHuBSzQk5nNvZZ5HCTHHqmwHDBcjtkullzC+DLRqWL5rXTegA1 hRsE3/42wx+wDgxJwrGMRUBEzsjCCXY+IVo0Lsfi/g71TGV2eQ2dvfmhfD0Trb4WPR9e IDuQ== X-Received: by 10.66.197.136 with SMTP id iu8mr21508600pac.0.1365867696920; Sat, 13 Apr 2013 08:41:36 -0700 (PDT) Received: from localhost.localdomain ([114.250.101.164]) by mx.google.com with ESMTPS id dg5sm12981254pbc.29.2013.04.13.08.41.27 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 13 Apr 2013 08:41:35 -0700 (PDT) From: Jiang Liu To: Andrew Morton , Yinghai Lu Cc: Jiang Liu , David Rientjes , Wen Congyang , Mel Gorman , Minchan Kim , KAMEZAWA Hiroyuki , Michal Hocko , David Howells , Mark Salter , Jianguo Wu , linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, "James E.J. Bottomley" , Helge Deller , linux-parisc@vger.kernel.org Subject: [RFC PATCH v1 08/19] mm/PARISC: prepare for killing free_all_bootmem_node() Date: Sat, 13 Apr 2013 23:36:28 +0800 Message-Id: <1365867399-21323-9-git-send-email-jiang.liu@huawei.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1365867399-21323-1-git-send-email-jiang.liu@huawei.com> References: <1365867399-21323-1-git-send-email-jiang.liu@huawei.com> Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org Prepare for killing free_all_bootmem_node() by using free_all_bootmem(). Signed-off-by: Jiang Liu Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: Michal Hocko Cc: David Rientjes Cc: linux-parisc@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/parisc/mm/init.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index f80c175..ab76b84 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/mm/init.c @@ -585,18 +585,8 @@ void __init mem_init(void) > BITS_PER_LONG); high_memory = __va((max_pfn << PAGE_SHIFT)); - -#ifndef CONFIG_DISCONTIGMEM - max_mapnr = page_to_pfn(virt_to_page(high_memory - 1)) + 1; + set_max_mapnr(page_to_pfn(virt_to_page(high_memory - 1)) + 1); free_all_bootmem(); -#else - { - int i; - - for (i = 0; i < npmem_ranges; i++) - free_all_bootmem_node(NODE_DATA(i)); - } -#endif #ifdef CONFIG_PA11 if (hppa_dma_ops == &pcxl_dma_ops) {