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/baget | |
parent | 9781bc8304de086b933804348a40995d60b66007 (diff) |
NTP fixes from Maciej.
Diffstat (limited to 'arch/mips/baget')
-rw-r--r-- | arch/mips/baget/time.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/arch/mips/baget/time.c b/arch/mips/baget/time.c index d56fa6a23..99dccb59d 100644 --- a/arch/mips/baget/time.c +++ b/arch/mips/baget/time.c @@ -76,21 +76,22 @@ void __init time_init(void) void do_gettimeofday(struct timeval *tv) { - unsigned long flags; + unsigned long flags; - save_and_cli(flags); - *tv = xtime; - restore_flags(flags); + save_and_cli(flags); + *tv = xtime; + restore_flags(flags); } void do_settimeofday(struct timeval *tv) { - unsigned long flags; + unsigned long flags; - save_and_cli(flags); - xtime = *tv; - time_state = TIME_BAD; - time_maxerror = MAXPHASE; - time_esterror = MAXPHASE; - restore_flags(flags); -} + save_and_cli(flags); + xtime = *tv; + time_adjust = 0; /* stop active adjtime() */ + time_status |= STA_UNSYNC; + time_maxerror = NTP_PHASE_LIMIT; + time_esterror = NTP_PHASE_LIMIT; + restore_flags(flags); +} |