Index: arch/m68knommu/kernel/time.c =================================================================== RCS file: /var/cvs/uClinux-2.4.x/arch/m68knommu/kernel/time.c,v retrieving revision 1.2 diff -c -r1.2 time.c *** arch/m68knommu/kernel/time.c 2001/11/21 22:59:20 1.2 --- arch/m68knommu/kernel/time.c 2002/04/01 15:13:41 *************** *** 130,148 **** */ void do_gettimeofday(struct timeval *tv) { ! #if 0 /* DAVIDM later if possible */ ! extern volatile unsigned long lost_ticks; ! #endif unsigned long flags; unsigned long usec, sec, lost; read_lock_irqsave(&xtime_lock, flags); usec = mach_gettimeoffset ? mach_gettimeoffset() : 0; ! #if 0 /* DAVIDM later if possible */ ! lost = lost_ticks; if (lost) usec += lost * (1000000/HZ); - #endif sec = xtime.tv_sec; usec += xtime.tv_usec; read_unlock_irqrestore(&xtime_lock, flags); --- 130,144 ---- */ void do_gettimeofday(struct timeval *tv) { ! extern volatile unsigned long wall_jiffies; unsigned long flags; unsigned long usec, sec, lost; read_lock_irqsave(&xtime_lock, flags); usec = mach_gettimeoffset ? mach_gettimeoffset() : 0; ! lost = jiffies - wall_jiffies; if (lost) usec += lost * (1000000/HZ); sec = xtime.tv_sec; usec += xtime.tv_usec; read_unlock_irqrestore(&xtime_lock, flags);