From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754066Ab3LCOnP (ORCPT ); Tue, 3 Dec 2013 09:43:15 -0500 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:49668 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752542Ab3LCOnL (ORCPT ); Tue, 3 Dec 2013 09:43:11 -0500 Date: Tue, 3 Dec 2013 14:43:09 +0000 From: Mark Rutland To: Linus Walleij Cc: Hanjun Guo , Daniel Lezcano , "Rafael J. Wysocki" , Catalin Marinas , Will Deacon , Russell King - ARM Linux , "grant.likely@linaro.org" , Matthew Garrett , Olof Johansson , Bjorn Helgaas , "rob.herring@calxeda.com" , Jon Masters , ACPI Devel Maling List , "linux-arm-kernel@lists.infradead.org" , Patch Tracking , "linux-kernel@vger.kernel.org" , linaro-kernel , "linaro-acpi@lists.linaro.org" Subject: Re: [RFC part3 PATCH 2/2] ARM64 / clocksource: Use arch_timer_acpi_init() Message-ID: <20131203144309.GC7552@e106331-lin.cambridge.arm.com> References: <1386069328-22502-1-git-send-email-hanjun.guo@linaro.org> <1386069328-22502-3-git-send-email-hanjun.guo@linaro.org> <529DE21E.4080707@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 03, 2013 at 02:13:49PM +0000, Linus Walleij wrote: > On Tue, Dec 3, 2013 at 2:52 PM, Hanjun Guo wrote: > > > I will introduce has_arch_timer_node() as you said and use > > it as follows: > > > > if (has_arch_timer_node()) > > clocksource_of_init(); > > esle > > arch_timer_acpi_init(); /* try ACPI way */ > > > > Is this make sense to you? What does arch_timer_acpi_init() do? Is it just detecting the presence of the timer, or grabbing the rate from a property in an ACPI table? Mark.