From: y0000218@rzsrv2.rz.tu-bs.de
Subject: Making xntpd work on alpha
Date: Mon, 12 Apr 1999 21:51:19 GMT [thread overview]
Message-ID: <199904122151.VAA19681@p014.ts.rz.tu-bs.de> (raw)
Unchecked, but some people seem to still have problems
with xntpd and maybe this helps them.
Olaf
[ This is a repost of the following article: ]
[ From: Wieger Opmeer <wieger@Wit389401.student.utwente.nl> ]
[ Subject: Making xntpd work on alpha ]
[ Newsgroups: local.kernel ]
[ Message-ID: <bc0d80cff6ef@ppp393.ts.rz.tu-bs.de> ]
Hi,
The following little patch makes xntpd work on my alpha with a 2.2.5
kernel. It fixes the old_adjtimex system call that glibc-2.0 uses to
always return correct values in struct timex, like it does in 2.0 kernels
and in the new adjtimex system call in kernel/time.c
This causes xntpd to get te right values for tick and hz, after wich it
performs a lot better.
--- arch/alpha/kernel/osf_sys.c.org Mon Mar 29 17:29:02 1999
+++ arch/alpha/kernel/osf_sys.c Thu Apr 1 13:41:36 1999
@@ -1408,8 +1408,7 @@
offsetof(struct timex32, time)))
return -EFAULT;
- if ((ret = do_adjtimex(&txc)))
- return ret;
+ ret = do_adjtimex(&txc);
/* copy back to timex32 */
if (copy_to_user(txc_p, &txc, offsetof(struct timex32, time)) ||
@@ -1418,5 +1417,5 @@
(put_tv32(&txc_p->time, &txc.time)))
return -EFAULT;
- return 0;
+ return ret;
}
~~ Wieger
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
--
"The number of Unix installations Olaf Schnapauff,
has grown to 10, with more expected." O.Schnapauff@tu-bs.de
- The Unix Programmer's Manual,1972 http://www.tu-bs.de/~c0033014/
See Web page and keyservers for pgp public key
next reply other threads:[~1999-04-13 10:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-12 21:51 y0000218 [this message]
1999-05-17 0:29 ` Making xntpd work on alpha furio ercolessi
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox