[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Re: [PATCH RFC] do_settime is backwards?!



On Wed, 6 Aug 2008 15:51:02 -0600
"Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote:

> Check out the definition of do_div which works strangely.
> I was confused by that also, but the code in question
> does work (I think!).

OK, so the original code of:

    x = (secs * 1000000000ULL) + (u64)nsecs - system_time_base;
    y = do_div(x, 1000000000);

Leaves "x" as the number of seconds and "y" as the
remainder, in nanoseconds.

Good to know that I overlooked something and the
original code was right after all!

-- 
All rights reversed.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.