Subject: timex.h patch / CP0 undefined

From: Florian Lohoff <[email-masked]>
Date: Thu, 30 Mar 2000 14:22:56 +0200

Hi,
could someone apply this patch to the cvs archive.
This bites me everytime i am trying to build "ntp" or "xntp".

Index: timex.h
===================================================================
RCS file: /cvs/linux/include/asm-mips/timex.h,v
retrieving revision 1.2
diff -u -r1.2 timex.h
--- timex.h	1999/02/15 02:22:14	1.2
+++ timex.h	2000/03/30 12:16:47
@@ -17,6 +17,8 @@
 	(1000000/CLOCK_TICK_FACTOR) / (CLOCK_TICK_RATE/CLOCK_TICK_FACTOR)) \
 		<< (SHIFT_SCALE-SHIFT_HZ)) / HZ)
 
+#ifdef __KERNEL__
+
 /*
  * Standard way to access the cycle counter.
  * Currently only used on SMP for scheduling.
@@ -36,4 +38,5 @@
 	return read_32bit_cp0_register(CP0_COUNT);
 }
 
+#endif /* __KERNEL__ */
 #endif /*  __ASM_MIPS_TIMEX_H */

Flo
-- 
Florian Lohoff		[email-masked]		      	+49-5241-470566
"Technology is a constant battle between manufacturers producing bigger and
more idiot-proof systems and nature producing bigger and better idiots."