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
8 * FIXME: For some of the supported machines this is dead wrong.
13 #include <asm/mipsregs.h>
16 * Standard way to access the cycle counter.
17 * Currently only used on SMP for scheduling.
19 * Only the low 32 bits are available as a continuously counting entity.
20 * But this only means we'll force a reschedule every 8 seconds or so,
21 * which isn't an evil thing.
23 * We know that all SMP capable CPUs have cycle counters.
26 typedef unsigned int cycles_t;
27 extern cycles_t cacheflush_time;
29 static inline cycles_t get_cycles (void)
31 return read_c0_count();
34 #define vxtime_lock() do {} while (0)
35 #define vxtime_unlock() do {} while (0)
37 #endif /* _ASM_TIMEX_H */