[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.11.1508241942450.3873@nanos>
Date: Mon, 24 Aug 2015 19:50:14 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: Fu Wei <fu.wei@...aro.org>
cc: Suravee.Suthikulpanit@....com, hanjun.guo@...aro.org,
linaro-acpi@...ts.linaro.org, linux-watchdog@...r.kernel.org,
devicetree@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
linux-doc@...r.kernel.org, tekkamanninja@...il.com,
graeme.gregory@...aro.org, al.stone@...aro.org,
Arnd Bergmann <arnd@...db.de>, linux@...ck-us.net,
vgandhi@...eaurora.org, wim@...ana.be,
Jon Masters <jcm@...hat.com>, leo.duran@....com,
Jonathan Corbet <corbet@....net>, mark.rutland@....com,
catalin.marinas@....com, will.deacon@....com, rjw@...ysocki.net,
dyoung@...hat.com, panand@...hat.com,
Daniel Lezcano <daniel.lezcano@...aro.org>
Subject: Re: [PATCH v7 8/8] clocksource: simplify ACPI code in
arm_arch_timer.c
On Tue, 25 Aug 2015, fu.wei@...aro.org wrote:
You Cc the world and some more on your patch, but you fail to add the
maintainers of the clocksource code to the Cc list. Sigh.
> From: Fu Wei <fu.wei@...aro.org>
>
> The patch update arm_arch_timer driver to use the function
> provided by the new GTDT driver of ACPI.
> By this way, arm_arch_timer.c can be simplified, and separate
> all the ACPI GTDT knowledge from this timer driver.
That's not a proper changelog and this patch want's to be split in two:
1) Implement the new ACPI function
2) Make use of it
> index 0aa135d..99505bb 100644
> --- a/drivers/clocksource/arm_arch_timer.c
> +++ b/drivers/clocksource/arm_arch_timer.c
> @@ -817,68 +817,30 @@ CLOCKSOURCE_OF_DECLARE(armv7_arch_timer_mem, "arm,armv7-timer-mem",
> arch_timer_mem_init);
>
> #ifdef CONFIG_ACPI
> -static int __init map_generic_timer_interrupt(u32 interrupt, u32 flags)
> -{
> - int trigger, polarity;
> -
> - if (!interrupt)
> - return 0;
> -
> - trigger = (flags & ACPI_GTDT_INTERRUPT_MODE) ? ACPI_EDGE_SENSITIVE
> - : ACPI_LEVEL_SENSITIVE;
> -
> - polarity = (flags & ACPI_GTDT_INTERRUPT_POLARITY) ? ACPI_ACTIVE_LOW
> - : ACPI_ACTIVE_HIGH;
> -
> - return acpi_register_gsi(NULL, interrupt, trigger, polarity);
> -}
> -
> /* Initialize per-processor generic timer */
> -static int __init arch_timer_acpi_init(struct acpi_table_header *table)
> +void __init arch_timer_acpi_init(void)
> {
And how is that supposed to work when we have next generation CPUs
which implement a different timer? You break multisystem kernels that
way.
Thanks,
tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists