From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Subject: Re: [PATCH v13 4/6] arm64: Move unflatten_device_tree() call earlier. Date: Thu, 3 Mar 2016 07:47:51 -0600 Message-ID: References: <1456959362-2036-1-git-send-email-ddaney.cavm@gmail.com> <1456959362-2036-5-git-send-email-ddaney.cavm@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <1456959362-2036-5-git-send-email-ddaney.cavm@gmail.com> Sender: linux-kernel-owner@vger.kernel.org To: David Daney Cc: Will Deacon , "linux-arm-kernel@lists.infradead.org" , Frank Rowand , Grant Likely , Pawel Moll , Ian Campbell , Kumar Gala , Ganapatrao Kulkarni , Robert Richter , Ard Biesheuvel , Matt Fleming , Mark Rutland , Catalin Marinas , "linux-efi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , David Daney List-Id: devicetree@vger.kernel.org On Wed, Mar 2, 2016 at 4:56 PM, David Daney wrote: > From: David Daney > > In order to extract NUMA information from the device tree, we need to > have the tree in its unflattened form. > > Move the call to unflatten_device_tree() into paging_init(). This > puts it before the call to bootmem_init(), which is where the NUMA > information is extracted. Can't you just move up unflatten_device_tree in setup_arch rather than hiding in paging_init? > Signed-off-by: David Daney > --- > arch/arm64/kernel/setup.c | 7 +++---- > arch/arm64/mm/mmu.c | 5 +++++ > 2 files changed, 8 insertions(+), 4 deletions(-)