Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752369AbZCLHvA (ORCPT ); Thu, 12 Mar 2009 03:51:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751191AbZCLHuv (ORCPT ); Thu, 12 Mar 2009 03:50:51 -0400 Received: from www.tglx.de ([62.245.132.106]:49261 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751047AbZCLHuu (ORCPT ); Thu, 12 Mar 2009 03:50:50 -0400 Date: Thu, 12 Mar 2009 08:50:34 +0100 (CET) From: Thomas Gleixner To: john stultz cc: Frans Pop , linux-s390@vger.kernel.org, Roman Zippel , Linux Kernel Mailing List Subject: Re: [BUG,2.6.28,s390] Fails to boot in Hercules S/390 emulator In-Reply-To: <1236823066.7680.178.camel@localhost.localdomain> Message-ID: References: <200903080230.10099.elendil@planet.nl> <200903091604.56455.elendil@planet.nl> <1236733226.6080.28.camel@localhost> <200903111703.41663.elendil@planet.nl> <1236817822.7680.148.camel@localhost.localdomain> <1236818863.7680.156.camel@localhost.localdomain> <1236823066.7680.178.camel@localhost.localdomain> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 768 Lines: 23 On Wed, 11 Mar 2009, john stultz wrote: > Maybe a different way of expressing what we're calculating is the > following: > > xtime.tv_nsec = (clock->xtime_nsec + (1<shift)) >> clock->shift > clock->xtime_nsec = (1<shift) > - (clock->xtime_nsec &((1<shift)-1) > > In other words: The rounded up portion - the masked remainder in > xtime_nsec. > > Does that make sense? Yes, now that my brain works again. I knew I was missing something. You are definitely right: math _is_ hard :) tglx -- 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/