From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 19320 invoked from network); 17 May 1999 01:06:55 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 17 May 1999 01:06:55 -0000 Received: from despam.spin.it (down.spin.it [147.123.1.23]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id UAA07272 for ; Sun, 16 May 1999 20:29:09 -0400 Received: from noc.spin.it (up.spin.it [147.123.1.22]) by despam.spin.it (8.8.8/8.8.8/Spin-ext-980226) with ESMTP id CAA04621 for ; Mon, 17 May 1999 02:29:08 +0200 (METDST) Received: (from furio@localhost) by noc.spin.it (8.8.8/8.8.8/Spin-noc-nov1998) id CAA13024 for axp-list@redhat.com; Mon, 17 May 1999 02:29:07 +0200 (METDST) From: furio ercolessi Message-Id: <199905170029.CAA13024@noc.spin.it> Subject: Re: Making xntpd work on alpha To: axp-list@redhat.com Date: Mon, 17 May 1999 2:29:07 METDST In-Reply-To: <199904122151.VAA19681@p014.ts.rz.tu-bs.de>; from "y0000218@rzsrv2.rz.tu-bs.de" at Apr 12, 99 9:51 pm X-Mailer: Elm [revision: 109.19] On Mon, 12 Apr 1999, Olaf wrote: > > Unchecked, but some people seem to still have problems > with xntpd and maybe this helps them. > > Olaf Yes: I encountered the usual "tick too large" problem on a 2.2.7/RH5.2 system. Following other suggestions, I tried recompiling (from xntp3-5.93-4.src.rpm), but the problem remained. Then I recompiled the kernel using this patch and now it finally seems to work. Thanks furio ercolessi Spin - Trieste (Italy) > > [ This is a repost of the following article: ] > [ From: Wieger Opmeer ] > [ Subject: Making xntpd work on alpha ] > [ Newsgroups: local.kernel ] > [ Message-ID: ] > > > 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 > >