From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3yCps50St6zDrCx for ; Fri, 13 Oct 2017 11:44:56 +1100 (AEDT) Date: Thu, 12 Oct 2017 19:43:37 -0500 From: Segher Boessenkool To: Santosh Sivaraj Cc: linuxppc-dev , "Naveen N. Rao" , Srikar Dronamraju , John Stultz , Thomas Gleixner , Frederic Weisbecker , paul@samba.org Subject: Re: [PATCH v5] powerpc/vdso64: Add support for CLOCK_{REALTIME/MONOTONIC}_COARSE Message-ID: <20171013004336.GV4406@gate.crashing.org> References: <20171011083502.11648-1-santosh@fossix.org> <20171011170216.GR4406@gate.crashing.org> <20171012043317.xtfhwpf4dmnvu3bj@santosiv.in.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20171012043317.xtfhwpf4dmnvu3bj@santosiv.in.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi! On Thu, Oct 12, 2017 at 10:03:17AM +0530, Santosh Sivaraj wrote: > * Segher Boessenkool wrote (on 2017-10-11 17:02:16 +0000): > > On Wed, Oct 11, 2017 at 02:05:02PM +0530, Santosh Sivaraj wrote: > > > +70: ld r8,CFG_TB_UPDATE_COUNT(r3) > > > + andi. r0,r8,1 /* pending update ? loop */ > > > + bne- 70b > > > + xor r0,r8,r8 /* create dependency */ > > > > r0 already is 0 here, and already depends on r8. Or is this trying > > to do something else? > > The function from which this piece was borrowed from had a similar > implementation, didn't figure out why the extra dependency, kept it the way it > was. See __do_get_tspec function in the same file > (arch/powerpc/kernel/vdso64/gettimeofday.S). The xor there is superfluous, too. Segher