Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751519AbYCJQo0 (ORCPT ); Mon, 10 Mar 2008 12:44:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751085AbYCJQoS (ORCPT ); Mon, 10 Mar 2008 12:44:18 -0400 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:1342 "EHLO spitz.ucw.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751034AbYCJQoR (ORCPT ); Mon, 10 Mar 2008 12:44:17 -0400 Date: Mon, 10 Mar 2008 17:44:07 +0100 From: Pavel Machek To: Thomas Gleixner Cc: Linus Torvalds , LKML Subject: Re: [GIT pull] time(r) fixes for .25 Message-ID: <20080310164407.GC5040@ucw.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 839 Lines: 25 > @@ -174,6 +174,10 @@ static inline void timespec_add_ns(struct timespec *a, u64 ns) > { > ns += a->tv_nsec; > while(unlikely(ns >= NSEC_PER_SEC)) { > + /* The following asm() prevents the compiler from > + * optimising this loop into a modulo operation. */ > + asm("" : "+r"(ns)); > + optimizing -> pessimizing or "optimizing" or explain that "optimized" version is slower than real version? Missing space between while and ( ? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/