All of lore.kernel.org
 help / color / mirror / Atom feed
From: Logan Gunthorpe <logang@deltatee.com>
To: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org
Cc: Stephen Bates <sbates@raithlin.com>,
	Palmer Dabbelt <palmer@sifive.com>,
	Christoph Hellwig <hch@lst.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>
Subject: [PATCH v4 1/2] sh: mm: make use of new memblocks_present() helper
Date: Wed,  9 Jan 2019 13:39:10 -0700	[thread overview]
Message-ID: <20190109203911.7887-2-logang@deltatee.com> (raw)
In-Reply-To: <20190109203911.7887-1-logang@deltatee.com>

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(-)

diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c
index a8e5c0e00fca..dc0ff41d602d 100644
--- a/arch/sh/mm/init.c
+++ b/arch/sh/mm/init.c
@@ -234,12 +234,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();
 }
 
-- 
2.19.0


WARNING: multiple messages have this Message-ID (diff)
From: Logan Gunthorpe <logang@deltatee.com>
To: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org
Cc: Rob Herring <robh@kernel.org>, Rich Felker <dalias@libc.org>,
	Yoshinori Sato <ysato@users.sourceforge.jp>,
	Palmer Dabbelt <palmer@sifive.com>,
	Stephen Bates <sbates@raithlin.com>,
	Dan Williams <dan.j.williams@intel.com>,
	Logan Gunthorpe <logang@deltatee.com>,
	Christoph Hellwig <hch@lst.de>
Subject: [PATCH v4 1/2] sh: mm: make use of new memblocks_present() helper
Date: Wed,  9 Jan 2019 13:39:10 -0700	[thread overview]
Message-ID: <20190109203911.7887-2-logang@deltatee.com> (raw)
In-Reply-To: <20190109203911.7887-1-logang@deltatee.com>

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(-)

diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c
index a8e5c0e00fca..dc0ff41d602d 100644
--- a/arch/sh/mm/init.c
+++ b/arch/sh/mm/init.c
@@ -234,12 +234,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();
 }
 
-- 
2.19.0


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

  reply	other threads:[~2019-01-09 20:39 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-09 20:39 [PATCH v4 0/2] [PATCH v2 0/6] sparsemem support for RISC-V Logan Gunthorpe
2019-01-09 20:39 ` Logan Gunthorpe
2019-01-09 20:39 ` Logan Gunthorpe [this message]
2019-01-09 20:39   ` [PATCH v4 1/2] sh: mm: make use of new memblocks_present() helper Logan Gunthorpe
2019-01-15 13:58   ` Christoph Hellwig
2019-01-15 13:58     ` Christoph Hellwig
2019-01-15 17:30     ` Logan Gunthorpe
2019-01-15 17:30       ` Logan Gunthorpe
2019-01-09 20:39 ` [PATCH v4 2/2] RISC-V: Implement sparsemem Logan Gunthorpe
2019-01-09 20:39   ` Logan Gunthorpe
2019-01-15 13:58   ` Christoph Hellwig
2019-01-15 13:58     ` Christoph Hellwig
2019-07-31  6:30   ` Greentime Hu
2019-07-31  6:30     ` Greentime Hu
2019-07-31 17:07     ` Logan Gunthorpe
2019-07-31 17:07       ` Logan Gunthorpe
2019-08-01  3:34       ` Greentime Hu
2019-08-01  3:34         ` Greentime Hu
     [not found]         ` <CAEbi=3eZcgWevpX9VO9ohgxVDFVprk_t52Xbs3-TdtZ+js3NVA@mail.gmail.com>
2019-08-09 15:46           ` Logan Gunthorpe
2019-08-09 15:46             ` Logan Gunthorpe
2019-08-09 17:01             ` Greentime Hu
2019-08-09 17:01               ` Greentime Hu
2019-08-09 19:03               ` Logan Gunthorpe
2019-08-09 19:03                 ` Logan Gunthorpe
2019-08-12  4:01                 ` Greentime Hu
2019-08-12  4:01                   ` Greentime Hu
2019-08-12 15:51                   ` Logan Gunthorpe
2019-08-12 15:51                     ` Logan Gunthorpe
2019-08-13  6:04                     ` Greentime Hu
2019-08-13  6:04                       ` Greentime Hu
2019-08-13 16:14                       ` Logan Gunthorpe
2019-08-13 16:14                         ` Logan Gunthorpe
2019-08-13 16:39                         ` Paul Walmsley
2019-08-13 16:39                           ` Paul Walmsley
2019-08-13 16:48                           ` Paul Walmsley
2019-08-13 16:48                             ` Paul Walmsley
2019-08-13 16:48                             ` Paul Walmsley
2019-08-13 16:49                           ` Logan Gunthorpe
2019-08-13 16:49                             ` Logan Gunthorpe
2019-08-14 13:35                             ` Greentime Hu
2019-08-14 13:35                               ` Greentime Hu
2019-08-14 16:56                               ` Logan Gunthorpe
2019-08-14 16:56                                 ` Logan Gunthorpe
2019-08-14 17:40                                 ` Paul Walmsley
2019-08-14 17:40                                   ` Paul Walmsley
2019-08-14 17:46                                   ` Logan Gunthorpe
2019-08-14 17:46                                     ` Logan Gunthorpe
2019-08-14 20:09                                     ` Paul Walmsley
2019-08-14 20:09                                       ` Paul Walmsley
2019-08-14 22:21                               ` Logan Gunthorpe
2019-08-14 22:21                                 ` Logan Gunthorpe
2019-08-15  9:31                                 ` Greentime Hu
2019-08-15  9:31                                   ` Greentime Hu
2019-08-15 16:20                                   ` Logan Gunthorpe
2019-08-15 16:20                                     ` Logan Gunthorpe
2019-08-16  2:07                                     ` Greentime Hu
2019-08-16  2:07                                       ` Greentime Hu
2019-01-23 19:56 [PATCH v4 1/2] sh: mm: make use of new memblocks_present() helper Palmer Dabbelt
2019-01-23 19:56 ` Palmer Dabbelt
2019-01-23 20:31 ` Logan Gunthorpe
2019-01-23 20:31   ` Logan Gunthorpe
2019-03-19 17:56 ` Logan Gunthorpe
2019-03-19 17:56   ` Logan Gunthorpe
2019-03-20  2:54   ` Palmer Dabbelt
2019-03-20  2:54     ` Palmer Dabbelt
2019-03-20 17:43     ` Logan Gunthorpe
2019-03-20 17:43       ` Logan Gunthorpe
2019-03-21  8:37       ` Palmer Dabbelt
2019-03-21  8:37         ` Palmer Dabbelt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190109203911.7887-2-logang@deltatee.com \
    --to=logang@deltatee.com \
    --cc=dalias@libc.org \
    --cc=dan.j.williams@intel.com \
    --cc=hch@lst.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@sifive.com \
    --cc=robh@kernel.org \
    --cc=sbates@raithlin.com \
    --cc=ysato@users.sourceforge.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.