From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: Re: [PATCH v6 00/10] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer Date: Mon, 4 Jul 2016 15:43:50 +0200 Message-ID: <577A6816.3050709@linaro.org> References: <1467224153-22873-1-git-send-email-fu.wei@linaro.org> <2435381.sM3CFAEXNR@vostro.rjw.lan> <57767782.6020509@linaro.org> <1643662.QIDsTbCMZg@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1643662.QIDsTbCMZg@vostro.rjw.lan> Sender: linux-kernel-owner@vger.kernel.org To: "Rafael J. Wysocki" Cc: Hanjun Guo , Fu Wei , Catalin Marinas , Will Deacon , "Rafael J. Wysocki" , Len Brown , Thomas Gleixner , Marc Zyngier , "linux-arm-kernel@lists.infradead.org" , "linaro-acpi@lists.linaro.org" , Linux Kernel Mailing List , ACPI Devel Maling List , rruigrok@codeaurora.org, harba@codeaurora.org, Christopher Covington , Timur Tabi , G Gregory , Al Stone , Jon Masters , wei@redhat.com, Arnd Bergmann , Wim Van Sebroeck , Suravee Suthikulanit List-Id: linux-acpi@vger.kernel.org On 07/01/2016 11:01 PM, Rafael J. Wysocki wrote: > On Friday, July 01, 2016 04:00:34 PM Daniel Lezcano wrote: >> On 06/30/2016 03:27 PM, Rafael J. Wysocki wrote: >> [ ... ] >> clocksource-probe which is DT based with different drivers using it = in=20 >> drivers/clocksource with a pletore of different archs. >=20 > So maybe the GTDT code should be there too? *maybe* >> Cstate code which is only used by x86 is in drivers/acpi, it is only= =20 >> used by x86/ia64 and it isn't a problem. >=20 > It is a problem. =20 Can you explain why it is a problem ? > drivers/acpi/ is not the right place for arch-specific code. I do not understand this assertion regarding what happened during the last years with different subsystems where the drivers were moved from their arch specific directories to the drivers directory (cpufreq, cpuidle, clockevent, clk, etc ...) and resulted at the end to a code refactoring and consolidation. Why ACPI should follow the opposite rule ? >> There is a small chunk in arch/x86/kernel/acpi and it doesn't facili= tate the >> comprehension of the code. >> >> IMHO, having all ACPI code in the same directory will encourage the=20 >> consolidation. >=20 > The consolidation of what exactly? The consolidation of the ACPI code in general which is the counter-example of self-contained code. > In particular, how does the GTDT code in drivers/acpi/ help to consol= idate > anything? If I imagine we group all ACPI code under a common directory, the first example coming in my mind is the sharing of private headers, reducing the scope of exported functions and global variables (eg. acpi_disabled= ). That say, I can understand grouping all the ACPI into a single director= y will make it fall under a single umbrella's maintainer and that could b= e a nightmare to maintain as it covers a lot of different features. However, I believe that could be solved by clearly identifying who take= s care of what. --=20 Linaro.org =E2=94=82 Open source software for= ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog