From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from imap.sh.mvista.com (unknown [63.81.120.155]) by ozlabs.org (Postfix) with ESMTP id CA5F9DDEF2 for ; Thu, 21 Jun 2007 04:10:17 +1000 (EST) Message-ID: <46796DEE.5090206@ru.mvista.com> Date: Wed, 20 Jun 2007 22:11:58 +0400 From: Sergei Shtylyov MIME-Version: 1.0 To: Thomas Gleixner Subject: Re: [RFC] clocksouce implementation for powerpc References: <20070616101126.296384219@inhelltoy.tec.linutronix.de> <20070616101637.107940593@inhelltoy.tec.linutronix.de> <1182009083.11539.369.camel@imap.mvista.com> <20070620065710.GR9768@bakeyournoodle.com> <1182351439.18168.79.camel@imap.mvista.com> <467961F1.1060909@ru.mvista.com> <1182360681.3316.25.camel@chaos> In-Reply-To: <1182360681.3316.25.camel@chaos> Content-Type: text/plain; charset=us-ascii; format=flowed Cc: Andrew Morton , Daniel Walker , john stultz , LKML , LinuxPPC-dev , Ingo Molnar List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hello. Thomas Gleixner wrote: >>>>+void update_vsyscall(struct timespec *wall_time, struct clocksource *clock) >>>>+{ >>>>+ timer_recalc_offset(tb_last_jiffy); >>>>+ timer_check_rtc(); >>>>+} >> >>>Hmm .. This doesn't look like it's taking into account that the time has >>>changed .. >> >> Why? By the time it gets called (form the timer softirq context) > > > It is called from interrupt context at least in mainline. Only the -rt > patch moves this to the softirq. Anyway, by the time it gets called, tb_last_jiffy gets updated. > tglx WBR, Sergei