From: furio ercolessi <furio@spin.it>
To: axp-list@redhat.com
Subject: Re: Making xntpd work on alpha
Date: Mon, 17 May 1999 2:29:07 METDST [thread overview]
Message-ID: <199905170029.CAA13024@noc.spin.it> (raw)
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
On Mon, 12 Apr 1999, Olaf <y0000218@rzsrv2.rz.tu-bs.de> 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 <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
>
>
prev parent reply other threads:[~1999-05-17 1:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-12 21:51 Making xntpd work on alpha y0000218
1999-05-17 0:29 ` furio ercolessi [this message]
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