2 * Copyright (C) 2004-2006 Atmel Corporation
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
8 #ifndef __ASM_AVR32_TIMEX_H
9 #define __ASM_AVR32_TIMEX_H
12 * This is the frequency of the timer used for Linux's timer interrupt.
13 * The value should be defined as accurate as possible or under certain
14 * circumstances Linux timekeeping might become inaccurate or fail.
16 * For many system the exact clockrate of the timer isn't known but due to
17 * the way this value is used we can get away with a wrong value as long
21 * - a divisor of the actual rate
23 * 500000 is a good such cheat value.
25 * The obscure number 1193182 is the same as used by the original i8254
26 * time in legacy PC hardware; the chip is never found in AVR32 systems.
28 #define CLOCK_TICK_RATE 500000 /* Underlying HZ */
30 typedef unsigned long cycles_t;
32 static inline cycles_t get_cycles (void)
37 #define ARCH_HAS_READ_CURRENT_TIMER
39 #endif /* __ASM_AVR32_TIMEX_H */