[uClinux-dev] [PATCH] m68knommu/timex.h : Fix CLOCK_TICK_RATE

Philippe De Muyter phdm at macqel.be
Thu Mar 29 09:16:27 EST 2007


Hi Greg,

CLOCK_TICK_RATE should give the underlying frequency of the tick timer,
to make ntp happy.  For Coldfires, that's the main clock.
Here is a fix.

Signed-off-by: Philippe De Muyter <phdm at macqel.be>

--- linux-2.6-hg/include/asm-m68knommu/timex.h	2005-09-14 15:11:09.000000000 +0200
+++ linux-2.6.x//include/asm-m68knommu/timex.h	2006-02-13 08:29:12.000000000 +0100
@@ -1 +1,17 @@
+/*
+ * linux/include/asm-m68knommu/timex.h
+ *
+ * m68knommu architecture timex specifications
+ */
+#ifndef _ASMm68kNOMMU_TIMEX_H
+#define _ASMm68kNOMMU_TIMEX_H
+
 #include <asm-m68k/timex.h>
+
+#ifdef CONFIG_COLDFIRE
+#undef CLOCK_TICK_RATE
+#include <asm/coldfire.h>
+#define CLOCK_TICK_RATE MCF_CLK	/* Underlying HZ */
+#endif
+
+#endif



More information about the uClinux-dev mailing list