Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752053AbdCMNbD (ORCPT ); Mon, 13 Mar 2017 09:31:03 -0400 Received: from mail.skyhub.de ([5.9.137.197]:41436 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750846AbdCMNa5 (ORCPT ); Mon, 13 Mar 2017 09:30:57 -0400 Date: Mon, 13 Mar 2017 14:30:46 +0100 From: Borislav Petkov To: Wei Yang Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, tj@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] x86/mm/numa: remove the numa_nodemask_from_meminfo() Message-ID: <20170313133045.oq5agzhrz43pgw5o@pd.tnic> References: <20170206153529.14614-1-richard.weiyang@gmail.com> <20170206153529.14614-2-richard.weiyang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170206153529.14614-2-richard.weiyang@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1369 Lines: 40 On Mon, Feb 06, 2017 at 11:35:29PM +0800, Wei Yang wrote: > numa_nodemask_from_meminfo() is called to set bit according to > numa_meminfo. While the only two places for this call is used to set proper > bit to a copy of numa_nodes_parsed from numa_meminfo. With current code > path, those numa node information in numa_meminfo is a subset of > numa_nodes_parsed. So it is not necessary to set the bits again. > > The following is a code path analysis to prove the numa node information in > numa_meminfo is a subset of numa_nodes_parsed. > > x86_numa_init() > numa_init() > Case 1 > acpi_numa_init() > acpi_parse_memory_affinity() > numa_add_memblk() > node_set(numa_nodes_parsed) > acpi_parse_slit() > numa_nodemask_from_meminfo() > > Case 2 > amd_numa_init() > numa_add_memblk() > node_set(numa_nodes_parsed) > > Case 3 > dummy_numa_init() > node_set(numa_nodes_parsed) > numa_add_memblk() > > numa_register_memblks() > numa_nodemask_from_meminfo() What about of_numa_parse_memory_nodes() ? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.