[lkml]   [1996]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectTrouble with do_gettimeofday()

I am using 1.3.100 as a base for writing a driver for several
data acquisition boards. While testing, I noticed that
do_gettimeofday() in arch/i381/kernel/time.c is not monotonic
when called from an interrupt.

Specifically, it seems as though do_slow_gettimeoffset() returns
the wrong value during the period between the timer interrupt
and when update_wall_timer_one_tick() updates xtime.tv_usec
in kernel/sched.c. Obviously, since sys_gettimeofday() does not
call do_gettimeofday() during this period, the system call is
not affected. However, several drivers call do_gettimeofday(),
possibly some in interrupts (as mine does).

Is it better to simply say "don't call do_gettimeofday() from


 \ /
  Last update: 2005-03-22 13:37    [W:0.026 / U:14.760 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site