From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Deegan Subject: Re: [PATCH 3/5] RTC: Add UIP(update in progress) check logic Date: Mon, 5 Mar 2012 20:37:37 +0000 Message-ID: <20120305203737.GC3065@ocelot.phlegethon.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "Zhang, Yang Z" Cc: "xen-devel@lists.xensource.com" , Jan Beulich List-Id: xen-devel@lists.xenproject.org No comment on the rest of the series, but this caught my eye: At 08:25 +0000 on 05 Mar (1330935936), Zhang, Yang Z wrote: > +/* Return millisecs after 00:00:00 localtime, 1 January, 1970. */ > +uint64_t get_localtime_us(struct domain *d) > +{ > + return ((wc_sec + d->time_offset_seconds) * 1000000000ULL > + + wc_nsec + NOW()) / 1000UL; > +} > + The comment says milliseconds but the code does microseconds. Which is right? Tim.