diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-09-06 01:19:08 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-09-06 01:19:08 +0000 |
commit | 80aa08476c26d1f9aea7162807bd27f717852afb (patch) | |
tree | eac3f1445aa314b81b31ff3521e06d4619ba676c /arch/mips/kernel/time.c | |
parent | 9781bc8304de086b933804348a40995d60b66007 (diff) |
NTP fixes from Maciej.
Diffstat (limited to 'arch/mips/kernel/time.c')
-rw-r--r-- | arch/mips/kernel/time.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c index 0eb86b9f1..3551fd683 100644 --- a/arch/mips/kernel/time.c +++ b/arch/mips/kernel/time.c @@ -243,6 +243,7 @@ void do_gettimeofday(struct timeval *tv) void do_settimeofday(struct timeval *tv) { write_lock_irq (&xtime_lock); + /* This is revolting. We need to set the xtime.tv_usec * correctly. However, the value in this location is * is value at the last tick. @@ -261,6 +262,7 @@ void do_settimeofday(struct timeval *tv) time_status |= STA_UNSYNC; time_maxerror = NTP_PHASE_LIMIT; time_esterror = NTP_PHASE_LIMIT; + write_unlock_irq (&xtime_lock); } |