Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752200Ab3F0JrD (ORCPT ); Thu, 27 Jun 2013 05:47:03 -0400 Received: from guitar.tcltek.co.il ([192.115.133.116]:48186 "EHLO sivan.tkos.co.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751582Ab3F0JrB (ORCPT ); Thu, 27 Jun 2013 05:47:01 -0400 Date: Thu, 27 Jun 2013 12:46:49 +0300 From: Baruch Siach To: Maxime Ripard Cc: John Stultz , Thomas Gleixner , Emilio Lopez , linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, sunny@allwinnertech.com, shuge@allwinnertech.com, kevin@allwinnertech.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/8] clocksource: sun4i: Add clocksource and sched clock drivers Message-ID: <20130627094649.GM4824@tarshish> References: <1372281421-2099-1-git-send-email-maxime.ripard@free-electrons.com> <1372281421-2099-3-git-send-email-maxime.ripard@free-electrons.com> <20130627060234.GD4824@tarshish> <20130627093558.GB8437@lukather> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130627093558.GB8437@lukather> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1396 Lines: 32 Hi Maxime, On Thu, Jun 27, 2013 at 11:35:58AM +0200, Maxime Ripard wrote: > On Thu, Jun 27, 2013 at 09:02:34AM +0300, Baruch Siach wrote: > > On Wed, Jun 26, 2013 at 11:16:55PM +0200, Maxime Ripard wrote: > > > +static u32 sun4i_timer_sched_read(void) > > > > You commit message mentions "64 bits free running counter", but this one only > > returns 32 bit. > > Yeah, the callback setup by setup_sched_clock is supposed to be > returning a u32, and clocksource_mmio_init only accepts up to 32 bits as > well, so I'm only using the lower 32bits of this 64 bits counter. > > I'll amend the commit log to state this. But using 64 bit counter for sched_clock is much easier that using 32 bit one. You can either wait for the rest of Stephen's patch set (http://thread.gmane.org/gmane.linux.ports.arm.msm/4092) before adding 64 bit, or you can just make the trivial change to the now generic sched_clock code. baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - -- 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/