From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: Override timer interrupt Date: Mon, 15 Oct 2007 16:50:53 -0500 Message-ID: In-Reply-To: <1192481753.11795.25.camel@pasglop> References: <20071012213041.GB22894@mag.az.mvista.com> <1192229894.22054.29.camel@pasglop> <1192481753.11795.25.camel@pasglop> From: "Rune Torgersen" To: Cc: linuxppc-dev@ozlabs.org, linuxppc-embedded@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > From: Benjamin Herrenschmidt>=20 > > The TB register is only ued for offsets from the last=20 > jiffie, not as a > > continous offset, so then it works out pretty good. > > The date is derived from the absolute TB value though... Huh? Not in 2.6.18/arch/ppc at least, unless I'm completely misundrstanding the code. ppc/powerpc seems to be using clocksource_jiffies as the clock source, and teh gettimeofday gets xtime + a offset from last jiffie, and xtime is updated with a fixed amount per tick. Things have changed a lot since I last delved deep into this to try to ge an accurate freerunning clock (2.6.12).