linux-mips
[Top] [All Lists]

timex.h patch / CP0 undefined

To: linux@cthulhu.engr.sgi.com
Subject: timex.h patch / CP0 undefined
From: Florian Lohoff <flo@rfc822.org>
Date: Thu, 30 Mar 2000 14:22:56 +0200
Organization: rfc822 - pure communication
Sender: owner-linuxmips@oss.sgi.com
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          flo@rfc822.org                  +49-5241-470566
"Technology is a constant battle between manufacturers producing bigger and
more idiot-proof systems and nature producing bigger and better idiots."


<Prev in Thread] Current Thread [Next in Thread>
  • timex.h patch / CP0 undefined, Florian Lohoff <=