Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755022Ab3HFJEv (ORCPT ); Tue, 6 Aug 2013 05:04:51 -0400 Received: from top.free-electrons.com ([176.31.233.9]:52863 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754615Ab3HFJEu (ORCPT ); Tue, 6 Aug 2013 05:04:50 -0400 Message-ID: <5200BC2D.6050200@free-electrons.com> Date: Tue, 06 Aug 2013 11:04:45 +0200 From: Gregory CLEMENT User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Stephen Boyd CC: John Stultz , Russell King , linux-arm-msm@vger.kernel.org, Will Deacon , linux-kernel@vger.kernel.org, Christopher Covington , Catalin Marinas , Thomas Gleixner , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 14/17] clocksource: time-armada-370-xp: Switch to sched_clock_register() References: <1374189690-10810-1-git-send-email-sboyd@codeaurora.org> <1374189690-10810-15-git-send-email-sboyd@codeaurora.org> In-Reply-To: <1374189690-10810-15-git-send-email-sboyd@codeaurora.org> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1756 Lines: 49 On 19/07/2013 01:21, Stephen Boyd wrote: > The 32 bit sched_clock interface now supports 64 bits. Upgrade to > the 64 bit function to allow us to remove the 32 bit registration > interface. Acked-by: Gregory CLEMENT > > Cc: Gregory CLEMENT > Signed-off-by: Stephen Boyd > --- > drivers/clocksource/time-armada-370-xp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/clocksource/time-armada-370-xp.c b/drivers/clocksource/time-armada-370-xp.c > index efdca32..2bec8dc 100644 > --- a/drivers/clocksource/time-armada-370-xp.c > +++ b/drivers/clocksource/time-armada-370-xp.c > @@ -71,7 +71,7 @@ static u32 ticks_per_jiffy; > > static struct clock_event_device __percpu **percpu_armada_370_xp_evt; > > -static u32 notrace armada_370_xp_read_sched_clock(void) > +static u64 notrace armada_370_xp_read_sched_clock(void) > { > return ~readl(timer_base + TIMER0_VAL_OFF); > } > @@ -258,7 +258,7 @@ void __init armada_370_xp_timer_init(void) > /* > * Set scale and timer for sched_clock. > */ > - setup_sched_clock(armada_370_xp_read_sched_clock, 32, timer_clk); > + sched_clock_register(armada_370_xp_read_sched_clock, 32, timer_clk); > > /* > * Setup free-running clocksource timer (interrupts > -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/