Skip to content

Commit

Permalink
m68knommu: fix tick timer definition for coldfire
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Greg Ungerer <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Greg Ungerer authored and Linus Torvalds committed Jul 25, 2007
1 parent 3699522 commit 5c4f526
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion include/asm-m68knommu/timex.h
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5c4f526

Please sign in to comment.