11 #include <linux/module.h>
14 #include <linux/time.h>
17 #include <linux/sched.h>
24 #define TICK_SIZE (tick_nsec / 1000)
26 static struct irqaction bfin_timer_irq = {
27 .name =
"Blackfin Timer Tick",
30 #if defined(CONFIG_IPIPE)
31 void __init setup_system_timer0(
void)
71 time_sched_init(
irqreturn_t(*timer_routine) (
int,
void *))
73 #if defined(CONFIG_IPIPE)
74 setup_system_timer0();
75 bfin_timer_irq.
handler = timer_routine;
79 bfin_timer_irq.
handler = timer_routine;
84 #ifdef CONFIG_ARCH_USES_GETTIMEOFFSET
91 unsigned long clocks_per_jiffy;
93 #if defined(CONFIG_IPIPE)
107 && (offset < (100000 /
HZ / 2)))
118 #ifdef CONFIG_CORE_TIMER_IRQ_L1
137 time_t secs_since_1970 = (365 * 37 + 9) * 24 * 60 * 60;
138 ts->
tv_sec = secs_since_1970;
144 #ifdef CONFIG_RTC_DRV_BFIN