1/* 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 4 * for more details. 5 * 6 * Copyright (C) 1998, 1999, 2003 by Ralf Baechle 7 * 8 * FIXME: For some of the supported machines this is dead wrong. 9 */ 10#ifndef _ASM_TIMEX_H 11#define _ASM_TIMEX_H 12 13#include <asm/mipsregs.h> 14 15/* 16 * Standard way to access the cycle counter. 17 * Currently only used on SMP for scheduling. 18 * 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. 22 * 23 * We know that all SMP capable CPUs have cycle counters. 24 */ 25 26typedef unsigned int cycles_t; 27extern cycles_t cacheflush_time; 28 29static inline cycles_t get_cycles (void) 30{ 31 return read_c0_count(); 32} 33 34#define vxtime_lock() do {} while (0) 35#define vxtime_unlock() do {} while (0) 36 37#endif /* _ASM_TIMEX_H */ 38

