Making xntpd work on alpha

Wieger Opmeer (wieger@Wit389401.student.utwente.nl)
Thu, 1 Apr 1999 14:26:14 +0200 (CEST)


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/