patch-2.4.0-test12 linux/include/asm-parisc/timex.h
Next file: linux/include/asm-parisc/traps.h
Previous file: linux/include/asm-parisc/termios.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Wed Dec 6 11:46:39 2000
- Orig file:
v2.4.0-test11/linux/include/asm-parisc/timex.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.4.0-test11/linux/include/asm-parisc/timex.h linux/include/asm-parisc/timex.h
@@ -0,0 +1,21 @@
+/*
+ * linux/include/asm-parisc/timex.h
+ *
+ * PARISC architecture timex specifications
+ */
+#ifndef _ASMPARISC_TIMEX_H
+#define _ASMPARISC_TIMEX_H
+
+#include <asm/system.h>
+#include <linux/time.h>
+
+typedef unsigned long cycles_t;
+
+extern cycles_t cacheflush_time;
+
+static inline cycles_t get_cycles (void)
+{
+ return mfctl(16);
+}
+
+#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)