2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 1998, 1999, 2003 by Ralf Baechle
11 #include <asm/mipsregs.h>
14 * Standard way to access the cycle counter.
15 * Currently only used on SMP for scheduling.
17 * Only the low 32 bits are available as a continuously counting entity.
18 * But this only means we'll force a reschedule every 8 seconds or so,
19 * which isn't an evil thing.
21 * We know that all SMP capable CPUs have cycle counters.
24 typedef unsigned int cycles_t
;
25 extern cycles_t cacheflush_time
;
27 static inline cycles_t
get_cycles (void)
29 return read_c0_count();
32 #endif /* _ASM_TIMEX_H */