2 * linux/arch/cris/kernel/fasttimer.c
4 * Fast timers for ETRAX100/ETRAX100LX
6 * Copyright (C) 2000-2007 Axis Communications AB, Lund, Sweden
9 #include <linux/errno.h>
10 #include <linux/sched.h>
11 #include <linux/kernel.h>
12 #include <linux/param.h>
13 #include <linux/string.h>
15 #include <linux/vmalloc.h>
16 #include <linux/interrupt.h>
17 #include <linux/time.h>
18 #include <linux/delay.h>
20 #include <asm/segment.h>
23 #include <asm/delay.h>
27 #include <asm/arch/svinto.h>
28 #include <asm/fasttimer.h>
29 #include <linux/proc_fs.h>
32 #define DEBUG_LOG_INCLUDED
33 #define FAST_TIMER_LOG
34 //#define FAST_TIMER_TEST
36 #define FAST_TIMER_SANITY_CHECKS
38 #ifdef FAST_TIMER_SANITY_CHECKS
39 #define SANITYCHECK(x) x
40 static int sanity_failed;
42 #define SANITYCHECK(x)
49 #define __INLINE__ inline
51 static unsigned int fast_timer_running;
52 static unsigned int fast_timers_added;
53 static unsigned int fast_timers_started;
54 static unsigned int fast_timers_expired;
55 static unsigned int fast_timers_deleted;
56 static unsigned int fast_timer_is_init;
57 static unsigned int fast_timer_ints;
59 struct fast_timer *fast_timer_list = NULL;
61 #ifdef DEBUG_LOG_INCLUDED
62 #define DEBUG_LOG_MAX 128
63 static const char * debug_log_string[DEBUG_LOG_MAX];
64 static unsigned long debug_log_value[DEBUG_LOG_MAX];
65 static unsigned int debug_log_cnt;
66 static unsigned int debug_log_cnt_wrapped;
68 #define DEBUG_LOG(string, value) \
70 unsigned long log_flags; \
71 local_irq_save(log_flags); \
72 debug_log_string[debug_log_cnt] = (string); \
73 debug_log_value[debug_log_cnt] = (unsigned long)(value); \
74 if (++debug_log_cnt >= DEBUG_LOG_MAX) \
76 debug_log_cnt = debug_log_cnt % DEBUG_LOG_MAX; \
77 debug_log_cnt_wrapped = 1; \
79 local_irq_restore(log_flags); \
82 #define DEBUG_LOG(string, value)
86 /* The frequencies for index = clkselx number in R_TIMER_CTRL */
87 #define NUM_TIMER_FREQ 15
88 #define MAX_USABLE_TIMER_FREQ 7
89 #define MAX_DELAY_US 853333L
90 const unsigned long timer_freq_100[NUM_TIMER_FREQ] =
92 3, /* 0 3333 - 853333 us */
93 6, /* 1 1666 - 426666 us */
94 12, /* 2 833 - 213333 us */
95 24, /* 3 416 - 106666 us */
96 48, /* 4 208 - 53333 us */
97 96, /* 5 104 - 26666 us */
98 192, /* 6 52 - 13333 us */
99 384, /* 7 26 - 6666 us */
109 #define NUM_TIMER_STATS 16
110 #ifdef FAST_TIMER_LOG
111 struct fast_timer timer_added_log[NUM_TIMER_STATS];
112 struct fast_timer timer_started_log[NUM_TIMER_STATS];
113 struct fast_timer timer_expired_log[NUM_TIMER_STATS];
116 int timer_div_settings[NUM_TIMER_STATS];
117 int timer_freq_settings[NUM_TIMER_STATS];
118 int timer_delay_settings[NUM_TIMER_STATS];
120 /* Not true gettimeofday, only checks the jiffies (uptime) + useconds */
121 void __INLINE__ do_gettimeofday_fast(struct fasttime_t *tv)
123 tv->tv_jiff = jiffies;
124 tv->tv_usec = GET_JIFFIES_USEC();
127 int __INLINE__ timeval_cmp(struct fasttime_t *t0, struct fasttime_t *t1)
129 /* Compare jiffies. Takes care of wrapping */
130 if (time_before(t0->tv_jiff, t1->tv_jiff))
132 else if (time_after(t0->tv_jiff, t1->tv_jiff))
136 if (t0->tv_usec < t1->tv_usec)
138 else if (t0->tv_usec > t1->tv_usec)
143 void __INLINE__ start_timer1(unsigned long delay_us)
145 int freq_index = 0; /* This is the lowest resolution */
146 unsigned long upper_limit = MAX_DELAY_US;
149 /* Start/Restart the timer to the new shorter value */
150 /* t = 1/freq = 1/19200 = 53us
151 * T=div*t, div = T/t = delay_us*freq/1000000
153 #if 1 /* Adaptive timer settings */
154 while (delay_us < upper_limit && freq_index < MAX_USABLE_TIMER_FREQ)
157 upper_limit >>= 1; /* Divide by 2 using shift */
166 div = delay_us * timer_freq_100[freq_index]/10000;
169 /* Maybe increase timer freq? */
174 div = 0; /* This means 256, the max the timer takes */
175 /* If a longer timeout than the timer can handle is used,
176 * then we must restart it when it goes off.
180 timer_div_settings[fast_timers_started % NUM_TIMER_STATS] = div;
181 timer_freq_settings[fast_timers_started % NUM_TIMER_STATS] = freq_index;
182 timer_delay_settings[fast_timers_started % NUM_TIMER_STATS] = delay_us;
184 D1(printk(KERN_DEBUG "start_timer1 : %d us freq: %i div: %i\n",
185 delay_us, freq_index, div));
186 /* Clear timer1 irq */
187 *R_IRQ_MASK0_CLR = IO_STATE(R_IRQ_MASK0_CLR, timer1, clr);
189 /* Set timer values */
190 *R_TIMER_CTRL = r_timer_ctrl_shadow =
191 (r_timer_ctrl_shadow &
192 ~IO_MASK(R_TIMER_CTRL, timerdiv1) &
193 ~IO_MASK(R_TIMER_CTRL, tm1) &
194 ~IO_MASK(R_TIMER_CTRL, clksel1)) |
195 IO_FIELD(R_TIMER_CTRL, timerdiv1, div) |
196 IO_STATE(R_TIMER_CTRL, tm1, stop_ld) |
197 IO_FIELD(R_TIMER_CTRL, clksel1, freq_index ); /* 6=c19k2Hz */
200 *R_TIMER_CTRL = r_timer_ctrl_shadow |
201 IO_STATE(R_TIMER_CTRL, i1, clr);
204 *R_TIMER_CTRL = r_timer_ctrl_shadow =
205 (r_timer_ctrl_shadow & ~IO_MASK(R_TIMER_CTRL, tm1)) |
206 IO_STATE(R_TIMER_CTRL, tm1, run);
208 /* Enable timer1 irq */
209 *R_IRQ_MASK0_SET = IO_STATE(R_IRQ_MASK0_SET, timer1, set);
210 fast_timers_started++;
211 fast_timer_running = 1;
214 /* In version 1.4 this function takes 27 - 50 us */
215 void start_one_shot_timer(struct fast_timer *t,
216 fast_timer_function_type *function,
218 unsigned long delay_us,
222 struct fast_timer *tmp;
224 D1(printk("sft %s %d us\n", name, delay_us));
226 local_irq_save(flags);
228 do_gettimeofday_fast(&t->tv_set);
229 tmp = fast_timer_list;
231 SANITYCHECK({ /* Check so this is not in the list already... */
237 "timer name: %s data: 0x%08lX already in list!\n", name, data);
246 tmp = fast_timer_list;
249 t->delay_us = delay_us;
250 t->function = function;
254 t->tv_expires.tv_usec = t->tv_set.tv_usec + delay_us % 1000000;
255 t->tv_expires.tv_jiff = t->tv_set.tv_jiff + delay_us / 1000000 / HZ;
256 if (t->tv_expires.tv_usec > 1000000)
258 t->tv_expires.tv_usec -= 1000000;
259 t->tv_expires.tv_jiff += HZ;
261 #ifdef FAST_TIMER_LOG
262 timer_added_log[fast_timers_added % NUM_TIMER_STATS] = *t;
266 /* Check if this should timeout before anything else */
267 if (tmp == NULL || timeval_cmp(&t->tv_expires, &tmp->tv_expires) < 0)
269 /* Put first in list and modify the timer value */
271 t->next = fast_timer_list;
274 fast_timer_list->prev = t;
277 #ifdef FAST_TIMER_LOG
278 timer_started_log[fast_timers_started % NUM_TIMER_STATS] = *t;
280 start_timer1(delay_us);
282 /* Put in correct place in list */
284 timeval_cmp(&t->tv_expires, &tmp->next->tv_expires) > 0)
288 /* Insert t after tmp */
298 D2(printk("start_one_shot_timer: %d us done\n", delay_us));
301 local_irq_restore(flags);
302 } /* start_one_shot_timer */
304 static inline int fast_timer_pending (const struct fast_timer * t)
306 return (t->next != NULL) || (t->prev != NULL) || (t == fast_timer_list);
309 static inline int detach_fast_timer (struct fast_timer *t)
311 struct fast_timer *next, *prev;
312 if (!fast_timer_pending(t))
321 fast_timer_list = next;
322 fast_timers_deleted++;
326 int del_fast_timer(struct fast_timer * t)
331 local_irq_save(flags);
332 ret = detach_fast_timer(t);
333 t->next = t->prev = NULL;
334 local_irq_restore(flags);
336 } /* del_fast_timer */
339 /* Interrupt routines or functions called in interrupt context */
341 /* Timer 1 interrupt handler */
344 timer1_handler(int irq, void *dev_id)
346 struct fast_timer *t;
349 /* We keep interrupts disabled not only when we modify the
350 * fast timer list, but any time we hold a reference to a
351 * timer in the list, since del_fast_timer may be called
352 * from (another) interrupt context. Thus, the only time
353 * when interrupts are enabled is when calling the timer
356 local_irq_save(flags);
358 /* Clear timer1 irq */
359 *R_IRQ_MASK0_CLR = IO_STATE(R_IRQ_MASK0_CLR, timer1, clr);
361 /* First stop timer, then ack interrupt */
363 *R_TIMER_CTRL = r_timer_ctrl_shadow =
364 (r_timer_ctrl_shadow & ~IO_MASK(R_TIMER_CTRL, tm1)) |
365 IO_STATE(R_TIMER_CTRL, tm1, stop_ld);
368 *R_TIMER_CTRL = r_timer_ctrl_shadow | IO_STATE(R_TIMER_CTRL, i1, clr);
370 fast_timer_running = 0;
376 struct fasttime_t tv;
377 fast_timer_function_type *f;
380 /* Has it really expired? */
381 do_gettimeofday_fast(&tv);
382 D1(printk(KERN_DEBUG "t: %is %06ius\n",
383 tv.tv_jiff, tv.tv_usec));
385 if (timeval_cmp(&t->tv_expires, &tv) <= 0)
387 /* Yes it has expired */
388 #ifdef FAST_TIMER_LOG
389 timer_expired_log[fast_timers_expired % NUM_TIMER_STATS] = *t;
391 fast_timers_expired++;
393 /* Remove this timer before call, since it may reuse the timer */
396 t->prev->next = t->next;
400 fast_timer_list = t->next;
404 t->next->prev = t->prev;
409 /* Save function callback data before enabling
410 * interrupts, since the timer may be removed and
411 * we don't know how it was allocated
412 * (e.g. ->function and ->data may become overwritten
413 * after deletion if the timer was stack-allocated).
419 /* Run callback with interrupts enabled. */
420 local_irq_restore(flags);
422 local_irq_save(flags);
424 DEBUG_LOG("!timer1 %i function==NULL!\n", fast_timer_ints);
428 /* Timer is to early, let's set it again using the normal routines */
432 if ((t = fast_timer_list) != NULL)
434 /* Start next timer.. */
436 struct fasttime_t tv;
438 do_gettimeofday_fast(&tv);
440 /* time_after_eq takes care of wrapping */
441 if (time_after_eq(t->tv_expires.tv_jiff, tv.tv_jiff))
442 us = ((t->tv_expires.tv_jiff - tv.tv_jiff) *
443 1000000 / HZ + t->tv_expires.tv_usec -
448 if (!fast_timer_running)
450 #ifdef FAST_TIMER_LOG
451 timer_started_log[fast_timers_started % NUM_TIMER_STATS] = *t;
459 /* Timer already expired, let's handle it better late than never.
460 * The normal loop handles it
462 D1(printk("e! %d\n", us));
467 local_irq_restore(flags);
471 D1(printk("t1 stop!\n"));
477 static void wake_up_func(unsigned long data)
479 #ifdef DECLARE_WAITQUEUE
480 wait_queue_head_t *sleep_wait_p = (wait_queue_head_t*)data;
482 struct wait_queue **sleep_wait_p = (struct wait_queue **)data;
484 wake_up(sleep_wait_p);
490 void schedule_usleep(unsigned long us)
493 wait_queue_head_t sleep_wait;
494 init_waitqueue_head(&sleep_wait);
496 D1(printk("schedule_usleep(%d)\n", us));
497 start_one_shot_timer(&t, wake_up_func, (unsigned long)&sleep_wait, us,
499 /* Uninterruptible sleep on the fast timer. (The condition is somewhat
500 * redundant since the timer is what wakes us up.) */
501 wait_event(sleep_wait, !fast_timer_pending(&t));
503 D1(printk("done schedule_usleep(%d)\n", us));
506 #ifdef CONFIG_PROC_FS
507 static int proc_fasttimer_read(char *buf, char **start, off_t offset, int len
508 ,int *eof, void *data_unused);
509 static struct proc_dir_entry *fasttimer_proc_entry;
510 #endif /* CONFIG_PROC_FS */
512 #ifdef CONFIG_PROC_FS
514 /* This value is very much based on testing */
515 #define BIG_BUF_SIZE (500 + NUM_TIMER_STATS * 300)
517 static int proc_fasttimer_read(char *buf, char **start, off_t offset, int len
518 ,int *eof, void *data_unused)
523 struct fasttime_t tv;
524 struct fast_timer *t, *nextt;
525 static char *bigbuf = NULL;
526 static unsigned long used;
528 if (!bigbuf && !(bigbuf = vmalloc(BIG_BUF_SIZE)))
536 if (!offset || !used)
538 do_gettimeofday_fast(&tv);
541 used += sprintf(bigbuf + used, "Fast timers added: %i\n",
543 used += sprintf(bigbuf + used, "Fast timers started: %i\n",
544 fast_timers_started);
545 used += sprintf(bigbuf + used, "Fast timer interrupts: %i\n",
547 used += sprintf(bigbuf + used, "Fast timers expired: %i\n",
548 fast_timers_expired);
549 used += sprintf(bigbuf + used, "Fast timers deleted: %i\n",
550 fast_timers_deleted);
551 used += sprintf(bigbuf + used, "Fast timer running: %s\n",
552 fast_timer_running ? "yes" : "no");
553 used += sprintf(bigbuf + used, "Current time: %lu.%06lu\n",
554 (unsigned long)tv.tv_jiff,
555 (unsigned long)tv.tv_usec);
556 #ifdef FAST_TIMER_SANITY_CHECKS
557 used += sprintf(bigbuf + used, "Sanity failed: %i\n",
560 used += sprintf(bigbuf + used, "\n");
562 #ifdef DEBUG_LOG_INCLUDED
564 int end_i = debug_log_cnt;
567 if (debug_log_cnt_wrapped)
572 while ((i != end_i || (debug_log_cnt_wrapped && !used)) &&
573 used+100 < BIG_BUF_SIZE)
575 used += sprintf(bigbuf + used, debug_log_string[i],
577 i = (i+1) % DEBUG_LOG_MAX;
580 used += sprintf(bigbuf + used, "\n");
583 num_to_show = (fast_timers_started < NUM_TIMER_STATS ? fast_timers_started:
585 used += sprintf(bigbuf + used, "Timers started: %i\n", fast_timers_started);
586 for (i = 0; i < num_to_show && (used+100 < BIG_BUF_SIZE) ; i++)
588 int cur = (fast_timers_started - i - 1) % NUM_TIMER_STATS;
590 #if 1 //ndef FAST_TIMER_LOG
591 used += sprintf(bigbuf + used, "div: %i freq: %i delay: %i"
593 timer_div_settings[cur],
594 timer_freq_settings[cur],
595 timer_delay_settings[cur]
598 #ifdef FAST_TIMER_LOG
599 t = &timer_started_log[cur];
600 used += sprintf(bigbuf + used, "%-14s s: %6lu.%06lu e: %6lu.%06lu "
601 "d: %6li us data: 0x%08lX"
604 (unsigned long)t->tv_set.tv_jiff,
605 (unsigned long)t->tv_set.tv_usec,
606 (unsigned long)t->tv_expires.tv_jiff,
607 (unsigned long)t->tv_expires.tv_usec,
613 used += sprintf(bigbuf + used, "\n");
615 #ifdef FAST_TIMER_LOG
616 num_to_show = (fast_timers_added < NUM_TIMER_STATS ? fast_timers_added:
618 used += sprintf(bigbuf + used, "Timers added: %i\n", fast_timers_added);
619 for (i = 0; i < num_to_show && (used+100 < BIG_BUF_SIZE); i++)
621 t = &timer_added_log[(fast_timers_added - i - 1) % NUM_TIMER_STATS];
622 used += sprintf(bigbuf + used, "%-14s s: %6lu.%06lu e: %6lu.%06lu "
623 "d: %6li us data: 0x%08lX"
626 (unsigned long)t->tv_set.tv_jiff,
627 (unsigned long)t->tv_set.tv_usec,
628 (unsigned long)t->tv_expires.tv_jiff,
629 (unsigned long)t->tv_expires.tv_usec,
634 used += sprintf(bigbuf + used, "\n");
636 num_to_show = (fast_timers_expired < NUM_TIMER_STATS ? fast_timers_expired:
638 used += sprintf(bigbuf + used, "Timers expired: %i\n", fast_timers_expired);
639 for (i = 0; i < num_to_show && (used+100 < BIG_BUF_SIZE); i++)
641 t = &timer_expired_log[(fast_timers_expired - i - 1) % NUM_TIMER_STATS];
642 used += sprintf(bigbuf + used, "%-14s s: %6lu.%06lu e: %6lu.%06lu "
643 "d: %6li us data: 0x%08lX"
646 (unsigned long)t->tv_set.tv_jiff,
647 (unsigned long)t->tv_set.tv_usec,
648 (unsigned long)t->tv_expires.tv_jiff,
649 (unsigned long)t->tv_expires.tv_usec,
654 used += sprintf(bigbuf + used, "\n");
657 used += sprintf(bigbuf + used, "Active timers:\n");
658 local_irq_save(flags);
660 while (t != NULL && (used+100 < BIG_BUF_SIZE))
663 local_irq_restore(flags);
664 used += sprintf(bigbuf + used, "%-14s s: %6lu.%06lu e: %6lu.%06lu "
665 "d: %6li us data: 0x%08lX"
666 /* " func: 0x%08lX" */
669 (unsigned long)t->tv_set.tv_jiff,
670 (unsigned long)t->tv_set.tv_usec,
671 (unsigned long)t->tv_expires.tv_jiff,
672 (unsigned long)t->tv_expires.tv_usec,
677 local_irq_save(flags);
678 if (t->next != nextt)
680 printk(KERN_WARNING "timer removed!\n");
684 local_irq_restore(flags);
687 if (used - offset < len)
692 memcpy(buf, bigbuf + offset, len);
700 #ifdef FAST_TIMER_TEST
701 static volatile unsigned long i = 0;
702 static volatile int num_test_timeout = 0;
703 static struct fast_timer tr[10];
704 static int exp_num[10];
706 static struct fasttime_t tv_exp[100];
708 static void test_timeout(unsigned long data)
710 do_gettimeofday_fast(&tv_exp[data]);
711 exp_num[data] = num_test_timeout;
716 static void test_timeout1(unsigned long data)
718 do_gettimeofday_fast(&tv_exp[data]);
719 exp_num[data] = num_test_timeout;
722 start_one_shot_timer(&tr[i], test_timeout1, i, 1000, "timeout1");
729 static char buf0[2000];
730 static char buf1[2000];
731 static char buf2[2000];
732 static char buf3[2000];
733 static char buf4[2000];
736 static char buf5[6000];
737 static int j_u[1000];
739 static void fast_timer_test(void)
744 struct fasttime_t tv, tv0, tv1, tv2;
746 printk("fast_timer_test() start\n");
747 do_gettimeofday_fast(&tv);
749 for (j = 0; j < 1000; j++)
751 j_u[j] = GET_JIFFIES_USEC();
753 for (j = 0; j < 100; j++)
755 do_gettimeofday_fast(&tv_exp[j]);
757 printk(KERN_DEBUG "fast_timer_test() %is %06i\n",
758 tv.tv_jiff, tv.tv_usec);
760 for (j = 0; j < 1000; j++)
762 printk("%i %i %i %i %i\n",j_u[j], j_u[j+1], j_u[j+2], j_u[j+3], j_u[j+4]);
765 for (j = 0; j < 100; j++)
767 printk(KERN_DEBUG "%i.%i %i.%i %i.%i %i.%i %i.%i\n",
768 tv_exp[j].tv_jiff, tv_exp[j].tv_usec,
769 tv_exp[j+1].tv_jiff, tv_exp[j+1].tv_usec,
770 tv_exp[j+2].tv_jiff, tv_exp[j+2].tv_usec,
771 tv_exp[j+3].tv_jiff, tv_exp[j+3].tv_usec,
772 tv_exp[j+4].tv_jiff, tv_exp[j+4].tv_usec);
775 do_gettimeofday_fast(&tv0);
776 start_one_shot_timer(&tr[i], test_timeout, i, 50000, "test0");
777 DP(proc_fasttimer_read(buf0, NULL, 0, 0, 0));
779 start_one_shot_timer(&tr[i], test_timeout, i, 70000, "test1");
780 DP(proc_fasttimer_read(buf1, NULL, 0, 0, 0));
782 start_one_shot_timer(&tr[i], test_timeout, i, 40000, "test2");
783 DP(proc_fasttimer_read(buf2, NULL, 0, 0, 0));
785 start_one_shot_timer(&tr[i], test_timeout, i, 60000, "test3");
786 DP(proc_fasttimer_read(buf3, NULL, 0, 0, 0));
788 start_one_shot_timer(&tr[i], test_timeout1, i, 55000, "test4xx");
789 DP(proc_fasttimer_read(buf4, NULL, 0, 0, 0));
791 do_gettimeofday_fast(&tv1);
793 proc_fasttimer_read(buf5, NULL, 0, 0, 0);
795 prev_num = num_test_timeout;
796 while (num_test_timeout < i)
798 if (num_test_timeout != prev_num)
800 prev_num = num_test_timeout;
803 do_gettimeofday_fast(&tv2);
804 printk(KERN_DEBUG "Timers started %is %06i\n",
805 tv0.tv_jiff, tv0.tv_usec);
806 printk(KERN_DEBUG "Timers started at %is %06i\n",
807 tv1.tv_jiff, tv1.tv_usec);
808 printk(KERN_DEBUG "Timers done %is %06i\n",
809 tv2.tv_jiff, tv2.tv_usec);
810 DP(printk("buf0:\n");
824 printk("timers set:\n");
827 struct fast_timer *t = &tr[j];
828 printk("%-10s set: %6is %06ius exp: %6is %06ius "
829 "data: 0x%08X func: 0x%08X\n",
833 t->tv_expires.tv_jiff,
834 t->tv_expires.tv_usec,
839 printk(" del: %6ius did exp: %6is %06ius as #%i error: %6li\n",
844 (tv_exp[j].tv_jiff - t->tv_expires.tv_jiff) *
845 1000000 + tv_exp[j].tv_usec -
846 t->tv_expires.tv_usec);
848 proc_fasttimer_read(buf5, NULL, 0, 0, 0);
849 printk("buf5 after all done:\n");
851 printk("fast_timer_test() done\n");
856 int fast_timer_init(void)
858 /* For some reason, request_irq() hangs when called froom time_init() */
859 if (!fast_timer_is_init)
861 #if 0 && defined(FAST_TIMER_TEST)
865 printk(KERN_INFO "fast_timer_init()\n");
867 #if 0 && defined(FAST_TIMER_TEST)
868 for (i = 0; i <= TIMER0_DIV; i++)
870 /* We must be careful not to get overflow... */
871 printk("%3i %6u\n", i, timer0_value_us[i]);
874 #ifdef CONFIG_PROC_FS
875 if ((fasttimer_proc_entry = create_proc_entry( "fasttimer", 0, 0 )))
876 fasttimer_proc_entry->read_proc = proc_fasttimer_read;
878 if(request_irq(TIMER1_IRQ_NBR, timer1_handler, 0,
879 "fast timer int", NULL))
881 printk("err: timer1 irq\n");
883 fast_timer_is_init = 1;
884 #ifdef FAST_TIMER_TEST
891 __initcall(fast_timer_init);