* [M68KNOMMU]: fix tick timer definition for coldfire
@ 2007-07-25 12:07 Greg Ungerer
0 siblings, 0 replies; only message in thread
From: Greg Ungerer @ 2007-07-25 12:07 UTC (permalink / raw)
To: torvalds; +Cc: gerg, linux-kernel
CLOCK_TICK_RATE should give the underlying frequency of the tick timer,
to make ntp happy. For Coldfires, that's the main clock.
Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
---
diff -Naur linux-2.6.22/include/asm-m68knommu/timex.h linux-2.6.22-uc0/include/asm-m68knommu/timex.h
--- linux-2.6.22/include/asm-m68knommu/timex.h 2007-07-12 15:21:55.000000000 +1000
+++ linux-2.6.22-uc0/include/asm-m68knommu/timex.h 2007-07-12 15:23:59.000000000 +1000
@@ -1 +1,23 @@
-#include <asm-m68k/timex.h>
+/*
+ * linux/include/asm-m68knommu/timex.h
+ *
+ * m68knommu architecture timex specifications
+ */
+#ifndef _ASM_M68KNOMMU_TIMEX_H
+#define _ASM_M68KNOMMU_TIMEX_H
+
+#ifdef CONFIG_COLDFIRE
+#include <asm/coldfire.h>
+#define CLOCK_TICK_RATE MCF_CLK
+#else
+#define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
+#endif
+
+typedef unsigned long cycles_t;
+
+static inline cycles_t get_cycles(void)
+{
+ return 0;
+}
+
+#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-25 12:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-25 12:07 [M68KNOMMU]: fix tick timer definition for coldfire Greg Ungerer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox