Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1407274

Re: [PATCH] mm: use early_pfn_to_nid in register_page_bootmem_info_node

From Andrew Morton <akpm@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH] mm: use early_pfn_to_nid in register_page_bootmem_info_node
Date 2016-05-26 00:30 +0200
Message-ID <rCPtp-6wo-43@gated-at.bofh.it> (permalink)
References <rCOxk-5WN-39@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 25 May 2016 14:00:07 -0700 Yang Shi <yang.shi@linaro.org> wrote:

> register_page_bootmem_info_node() is invoked in mem_init(), so it will be
> called before page_alloc_init_late() if CONFIG_DEFERRED_STRUCT_PAGE_INIT
> is enabled. But, pfn_to_nid() depends on memmap which won't be fully setup
> until page_alloc_init_late() is done, so replace pfn_to_nid() by
> early_pfn_to_nid().

What are the runtime effects of this fix?

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] mm: use early_pfn_to_nid in register_page_bootmem_info_node Yang Shi <yang.shi@linaro.org> - 2016-05-25 23:30 +0200
  Re: [PATCH] mm: use early_pfn_to_nid in  register_page_bootmem_info_node Andrew Morton <akpm@linux-foundation.org> - 2016-05-26 00:30 +0200
    Re: [PATCH] mm: use early_pfn_to_nid in  register_page_bootmem_info_node "Shi, Yang" <yang.shi@linaro.org> - 2016-05-26 01:50 +0200
      Re: [PATCH] mm: use early_pfn_to_nid in  register_page_bootmem_info_node Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2016-05-26 02:40 +0200

csiph-web