Message ID | 20181015175702.9036-6-logang@deltatee.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 368D73B73 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 15 Oct 2018 17:57:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 278F32984E for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 15 Oct 2018 17:57:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B72E298CA; Mon, 15 Oct 2018 17:57:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85B6329863 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 15 Oct 2018 17:57:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8CD7B6B0010; Mon, 15 Oct 2018 13:57:19 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 87B666B0266; Mon, 15 Oct 2018 13:57:19 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 71E7F6B0269; Mon, 15 Oct 2018 13:57:19 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) by kanga.kvack.org (Postfix) with ESMTP id 269F86B0010 for <linux-mm@kvack.org>; Mon, 15 Oct 2018 13:57:19 -0400 (EDT) Received: by mail-io1-f69.google.com with SMTP id z9-v6so16895031iog.18 for <linux-mm@kvack.org>; Mon, 15 Oct 2018 10:57:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :date:message-id:in-reply-to:references:mime-version :content-transfer-encoding:subject; bh=NTcJ226Q2+0NWWI9l8S5fVLhXXyyUbvC1ipsiSvc4qQ=; b=shw3kfS+u/CVWdxjm2B2SFOlB0tif8qCVf02XrqjMRXUidZ8YALio9JXP8kL7cwT8F D1rOyv+/KFX/rLjwB9z7nlfrtu01ANs3z816jNG0R0pDD3w8UU7HblDj1+NSEWIx8P8l HYBvFYTZzR0IE7f0cbzG5C+bbqWnhepX6DkooxcIiylR7kXY47t3dFMSTeXut/hNnW6R 2uyy/8JTqywvBAVcfyEzwU44aC7jUII3NRffXXFlPoHU7OVwfb/FfsxcynY90rN7nmFd 93GJ1UjtGMoZaqO+aBx+qOoWNly5qyfTVLjbCRdMW2JZIEHbA2MIuzCOuh3JxQxCWdJE YC8A== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of gunthorp@deltatee.com designates 207.54.116.67 as permitted sender) smtp.mailfrom=gunthorp@deltatee.com X-Gm-Message-State: ABuFfohc22Es2IcV3WHbbSt3j8I/bcfCE579H8QS6k/ukv/QNT1WNr98 BlK5CCccYxl7jCbfwrj/8y7jzBk2Kg0eSzMYqUcEkYbLRmyyPjwRBmR5zY4TjScZKuhTwADhkHb McRCiTUiSXHiSvpjwCiDDS+b93kUMQ/PFyrTkLhq/OFIF4kQXO8EF4QzY6yTYJYu9/A== X-Received: by 2002:a24:3795:: with SMTP id r143-v6mr13647061itr.43.1539626238916; Mon, 15 Oct 2018 10:57:18 -0700 (PDT) X-Google-Smtp-Source: ACcGV63V34orFap1jvzo/kfvps7lCzbUHuZT2gnzNF3mlpZYIlPDnLlslovCMQdmo0BfAVMoPuiQ X-Received: by 2002:a24:3795:: with SMTP id r143-v6mr13647033itr.43.1539626238318; Mon, 15 Oct 2018 10:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539626238; cv=none; d=google.com; s=arc-20160816; b=fmfdHdpEFUkAyuG2WxT8u+PtD0xWTO4KsO7Gdq9JRvGQYZ0RZfBHD7o6GxepXeFOEo tleI+Udq4na2CxH0te0XIx8h1SuvAPN0Bj+9QWDbGXknQkHpylXWwsDnasJBfK6MMFSI pjqBKig2aHGsixuBEhUhObdgcp/Jw5jnIZ3Bk8hmXGNz/gkhmnm/ayDNTlCNJy6Ge7hc mVn7FRsD+FM+GV4m60BROJ9POvV/V6l6tXXPh8JT8GtK2DQLq902neOwgwKIhnupFgb2 l+sNDOyRX4HMGVjvxtKQZ+Kh/6an7+R8W+Dmz8f1MB6dkY65Mey2NO6UnSfAF1d5lrS2 k/Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:cc:to:from; bh=NTcJ226Q2+0NWWI9l8S5fVLhXXyyUbvC1ipsiSvc4qQ=; b=lfZaD/dHMj7QhvXu70hUTYrPH58chIbOHcT6sIjMsTCJjgA5rKdctlLU3bXGqE/rSp +ABc/THk0GB7WXOvyalsx9cP8nM52DF8IbY1LzEwqMQa7tN/ZCF+iVbJh6zrF1h1AuKy Exw+OBHgOpSBFbLo7wdvJMPw61N1AKX6rNS54jrxqmosJerFzlG6mglXSjp06028JBLv UYPP5lJ836mza1GiXVPyU9ogN9QfFX2EvmDYca5wMZ5nZCDx6p2ixVZSiq5ibT5RH6GE 2ZvvlWCqOiJMtxsecWZ0ilxOUvTpypSxPAeXM6g99ykw0Ff1nIxmwuBaw4b8M6i6prQX yImQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gunthorp@deltatee.com designates 207.54.116.67 as permitted sender) smtp.mailfrom=gunthorp@deltatee.com Received: from ale.deltatee.com (ale.deltatee.com. [207.54.116.67]) by mx.google.com with ESMTPS id g10-v6si7513145jag.125.2018.10.15.10.57.18 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Oct 2018 10:57:18 -0700 (PDT) Received-SPF: pass (google.com: domain of gunthorp@deltatee.com designates 207.54.116.67 as permitted sender) client-ip=207.54.116.67; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gunthorp@deltatee.com designates 207.54.116.67 as permitted sender) smtp.mailfrom=gunthorp@deltatee.com Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <gunthorp@deltatee.com>) id 1gC77C-0002IM-K6; Mon, 15 Oct 2018 11:57:17 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.89) (envelope-from <gunthorp@deltatee.com>) id 1gC779-0002Mm-IN; Mon, 15 Oct 2018 11:57:11 -0600 From: Logan Gunthorpe <logang@deltatee.com> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org Cc: Stephen Bates <sbates@raithlin.com>, Palmer Dabbelt <palmer@sifive.com>, Albert Ou <aou@eecs.berkeley.edu>, Christoph Hellwig <hch@lst.de>, Andrew Morton <akpm@linux-foundation.org>, Arnd Bergmann <arnd@arndb.de>, Logan Gunthorpe <logang@deltatee.com>, Yoshinori Sato <ysato@users.sourceforge.jp>, Rich Felker <dalias@libc.org>, Dan Williams <dan.j.williams@intel.com>, Rob Herring <robh@kernel.org> Date: Mon, 15 Oct 2018 11:57:01 -0600 Message-Id: <20181015175702.9036-6-logang@deltatee.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181015175702.9036-1-logang@deltatee.com> References: <20181015175702.9036-1-logang@deltatee.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org, sbates@raithlin.com, palmer@sifive.com, aou@eecs.berkeley.edu, hch@lst.de, akpm@linux-foundation.org, arnd@arndb.de, logang@deltatee.com, ysato@users.sourceforge.jp, dalias@libc.org, dan.j.williams@intel.com, robh@kernel.org X-SA-Exim-Mail-From: gunthorp@deltatee.com Subject: [PATCH v2 5/6] sh: mm: make use of new memblocks_present() helper X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
sparsemem support for RISC-V
|
expand
|
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index 7713c084d040..f601f96408ee 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c @@ -235,12 +235,7 @@ static void __init do_init_bootmem(void) plat_mem_setup(); - for_each_memblock(memory, reg) { - int nid = memblock_get_region_node(reg); - - memory_present(nid, memblock_region_memory_base_pfn(reg), - memblock_region_memory_end_pfn(reg)); - } + memblocks_present(); sparse_init(); }
Cleanup the open coded for_each_memblock() loop that is equivalent to the new memblocks_present() helper. Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Rob Herring <robh@kernel.org> --- arch/sh/mm/init.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)