ia64/xen-unstable

changeset 2576:1293cc819fed

bitkeeper revision 1.1159.97.3 (415c6936SE2JuWey2d_QmYIvVEKObw)

Tiny time fix.
author iap10@labyrinth.cl.cam.ac.uk
date Thu Sep 30 20:14:46 2004 +0000 (2004-09-30)
parents a98106d86aa2
children 4ecd18756ef8 b661254cb10b
files linux-2.6.8.1-xen-sparse/arch/xen/i386/kernel/time.c
line diff
     1.1 --- a/linux-2.6.8.1-xen-sparse/arch/xen/i386/kernel/time.c	Thu Sep 30 14:10:21 2004 +0000
     1.2 +++ b/linux-2.6.8.1-xen-sparse/arch/xen/i386/kernel/time.c	Thu Sep 30 20:14:46 2004 +0000
     1.3 @@ -126,14 +126,14 @@ u64 processed_system_time;   /* System t
     1.4  		(_tv).tv_sec++;			\
     1.5  	}					\
     1.6  } while (0)
     1.7 -static inline void __normalize_time(time_t *sec, s64 *usec)
     1.8 +static inline void __normalize_time(time_t *sec, s64 *nsec)
     1.9  {
    1.10 -	while (*usec >= NSEC_PER_SEC) {
    1.11 -		(*usec) -= NSEC_PER_SEC;
    1.12 +	while (*nsec >= NSEC_PER_SEC) {
    1.13 +		(*nsec) -= NSEC_PER_SEC;
    1.14  		(*sec)++;
    1.15  	}
    1.16 -	while (*usec < NSEC_PER_SEC) {
    1.17 -		(*usec) += NSEC_PER_SEC;
    1.18 +	while (*nsec < 0) {
    1.19 +		(*nsec) += NSEC_PER_SEC;
    1.20  		(*sec)--;
    1.21  	}
    1.22  }