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

Re: [Xen-devel] repeatable time jump



yOn Fri, 1 Oct 2004, Ian Pratt wrote:

> --- 
> /usr/groups/xeno/BK/xeno.bk/linux-2.6.8.1-xen-sparse/arch/xen/i386/kernel/time.c
>     2004-10-01 16:01:03.000000000 +0100
> +++ arch/xen/i386/kernel/time.c 2004-10-01 16:10:06.000000000 +0100
> @@ -114,28 +114,34 @@
>
>  #define NS_PER_TICK (1000000000ULL/HZ)
>
> -#define HANDLE_USEC_UNDERFLOW(_tv) do {                \
> +#define HANDLE_USEC_UNDERFLOW(_tv) do {        int i=0;        \
>         while ((_tv).tv_usec < 0) {             \
>                 (_tv).tv_usec += USEC_PER_SEC;  \
>                 (_tv).tv_sec--;                 \
> -       }                                       \
> +       }if(i>100)printk(KERN_ALERT"USEC_UNDER %d\n",i);        \
>  } while (0)

How can i>100?  i is never incremented.


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

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