From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754124AbcAXE4Q (ORCPT ); Sat, 23 Jan 2016 23:56:16 -0500 Received: from mail-pf0-f171.google.com ([209.85.192.171]:35042 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753653AbcAXE4O (ORCPT ); Sat, 23 Jan 2016 23:56:14 -0500 Message-ID: <56A45963.40105@linaro.org> Date: Sun, 24 Jan 2016 12:56:03 +0800 From: Hanjun Guo User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Robert Richter , Hanjun Guo CC: "Rafael J. Wysocki" , Will Deacon , Catalin Marinas , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ganapatrao Kulkarni , Lorenzo Pieralisi , Shannon Zhao , Steve Capper , Mark Rutland Subject: Re: [PATCH v3 04/12] acpi, numa: introduce ACPI_HAS_NUMA_ARCH_FIXUP References: <1453541967-3744-1-git-send-email-guohanjun@huawei.com> <1453541967-3744-5-git-send-email-guohanjun@huawei.com> <20160123102523.GC24726@rric.localdomain> In-Reply-To: <20160123102523.GC24726@rric.localdomain> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/23/2016 06:25 PM, Robert Richter wrote: > On 23.01.16 17:39:19, Hanjun Guo wrote: >> From: Hanjun Guo >> >> acpi_numa_arch_fixup() is only used for IA64, x86 introduce a dummy >> function for it, when we came to a new architecture (such as ARM64), >> we need to introduce another dummy one to make the code compile. >> >> That's pretty boring so introduce ACPI_HAS_NUMA_ARCH_FIXUP and >> select it for IA64, introduce a stub function for acpi_numa_arch_fixup() >> then it's pretty clean for x86 and ARM64. >> >> Signed-off-by: Hanjun Guo >> --- >> arch/ia64/Kconfig | 1 + > > I see an implementation of acpi_numa_arch_fixup() only for ia64. Why > not move it to arch/ia64 then and call it from setup_arch() in > arch/ia64/kernel/setup.c after acpi_numa_init()? It looks like we > don't need a generic solution for this. This avoids any kconfig > handling for this at all. It's much simpler as you suggested, I will update it in next version, thank you Robert :) Hanjun