Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Making xntpd work on alpha
@ 1999-04-12 21:51 y0000218
  1999-05-17  0:29 ` furio ercolessi
  0 siblings, 1 reply; 2+ messages in thread
From: y0000218 @ 1999-04-12 21:51 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-05-17  1:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-12 21:51 Making xntpd work on alpha y0000218
1999-05-17  0:29 ` furio ercolessi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox