From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30241 invoked from network); 13 Apr 1999 10:01:56 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 13 Apr 1999 10:01:56 -0000 Received: from rzcomm1.rz.tu-bs.de (rzcomm1.rz.tu-bs.de [134.169.9.107]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id FAA13764 for ; Tue, 13 Apr 1999 05:39:32 -0400 From: y0000218@rzsrv2.rz.tu-bs.de Received: from p014.ts.rz.tu-bs.de (p014.ts.rz.tu-bs.de [134.169.242.14]) by rzcomm1.rz.tu-bs.de (8.8.6/8.8.6) with ESMTP id LAA19892 for ; Tue, 13 Apr 1999 11:38:41 +0200 (METDST) Received: from alpha.utopia (p014.ts.rz.tu-bs.de [134.169.242.14]) by p014.ts.rz.tu-bs.de (8.9.0/8.8.7) with ESMTP id VAA19681 for ; Mon, 12 Apr 1999 21:51:19 GMT Date: Mon, 12 Apr 1999 21:51:19 GMT Message-Id: <199904122151.VAA19681@p014.ts.rz.tu-bs.de> Subject: Making xntpd work on alpha 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 ] [ 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 - 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