patch-2.3.99-pre9 linux/include/asm-mips/timex.h

Next file: linux/include/asm-mips/types.h
Previous file: linux/include/asm-mips/termios.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre8/linux/include/asm-mips/timex.h linux/include/asm-mips/timex.h
@@ -1,4 +1,4 @@
-/* $Id: timex.h,v 1.2 1999/02/15 02:22:14 ralf Exp $
+/* $Id: timex.h,v 1.1 1998/08/25 09:22:03 ralf Exp $
  *
  * This file is subject to the terms and conditions of the GNU General Public
  * License.  See the file "COPYING" in the main directory of this archive
@@ -17,6 +17,7 @@
 	(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.
@@ -35,5 +36,6 @@
 {
 	return read_32bit_cp0_register(CP0_COUNT);
 }
+#endif /* __KERNEL__ */
 
 #endif /*  __ASM_MIPS_TIMEX_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)