summaryrefslogtreecommitdiff
path: root/arch/parisc/include/asm/timex.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-10-28 15:54:49 (GMT)
committerIngo Molnar <mingo@elte.hu>2008-10-28 15:54:49 (GMT)
commitd1a76187a5be4f89c6cb19d800cb5fb7aac735c5 (patch)
tree2fac3ffbfffc7560eeef8364b541d0d7a0057920 /arch/parisc/include/asm/timex.h
parentc7e78cff6b7518212247fb20b1dc6411540dc9af (diff)
parent0173a3265b228da319ceb9c1ec6a5682fd1b2d92 (diff)
downloadlinux-fsl-qoriq-d1a76187a5be4f89c6cb19d800cb5fb7aac735c5.tar.xz
Merge commit 'v2.6.28-rc2' into core/locking
Conflicts: arch/um/include/asm/system.h
Diffstat (limited to 'arch/parisc/include/asm/timex.h')
-rw-r--r--arch/parisc/include/asm/timex.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/timex.h b/arch/parisc/include/asm/timex.h
new file mode 100644
index 0000000..3b68d77
--- /dev/null
+++ b/arch/parisc/include/asm/timex.h
@@ -0,0 +1,20 @@
+/*
+ * linux/include/asm-parisc/timex.h
+ *
+ * PARISC architecture timex specifications
+ */
+#ifndef _ASMPARISC_TIMEX_H
+#define _ASMPARISC_TIMEX_H
+
+#include <asm/system.h>
+
+#define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
+
+typedef unsigned long cycles_t;
+
+static inline cycles_t get_cycles (void)
+{
+ return mfctl(16);
+}
+
+#endif