diff options
author | Sebastian Siewior <bigeasy@linutronix.de> | 2008-04-28 05:43:04 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2008-07-23 01:11:28 -0400 |
commit | 2b9a69861c39ae4c232385def833816acc07a0a4 (patch) | |
tree | d4edc8214ea3bb32e61128de78588cb8058cd863 /arch/m68knommu/kernel | |
parent | 6dbeb456baaba05d60e7ca8213da26142062408a (diff) |
m68knommu: MCF5307 PIT GENERIC_CLOCKEVENTS support
The PIT code has been changed in order to suppport GENERIC_CLOCKEVENTS.
The priority of the PIT clocksource has been decreased in favor of the
DMA timer.
pit_cycles_per_jiffy become a constant (PIT_CYCLES_PER_JIFFY) because it
is known at compile time and does not change afterwards.
Signed-off-by: Benedikt Spranger <b.spranger@linutronix.de>
Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68knommu/kernel')
-rw-r--r-- | arch/m68knommu/kernel/time.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/m68knommu/kernel/time.c b/arch/m68knommu/kernel/time.c index 67944aa27280..d182b2f72211 100644 --- a/arch/m68knommu/kernel/time.c +++ b/arch/m68knommu/kernel/time.c | |||
@@ -33,6 +33,7 @@ static inline int set_rtc_mmss(unsigned long nowtime) | |||
33 | return -1; | 33 | return -1; |
34 | } | 34 | } |
35 | 35 | ||
36 | #ifndef CONFIG_GENERIC_CLOCKEVENTS | ||
36 | /* | 37 | /* |
37 | * timer_interrupt() needs to keep up the real-time clock, | 38 | * timer_interrupt() needs to keep up the real-time clock, |
38 | * as well as call the "do_timer()" routine every clocktick | 39 | * as well as call the "do_timer()" routine every clocktick |
@@ -54,6 +55,7 @@ irqreturn_t arch_timer_interrupt(int irq, void *dummy) | |||
54 | #endif | 55 | #endif |
55 | return(IRQ_HANDLED); | 56 | return(IRQ_HANDLED); |
56 | } | 57 | } |
58 | #endif | ||
57 | 59 | ||
58 | static unsigned long read_rtc_mmss(void) | 60 | static unsigned long read_rtc_mmss(void) |
59 | { | 61 | { |