The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/include/asm-mips64/timex.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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 
   26 typedef unsigned int cycles_t;
   27 extern cycles_t cacheflush_time;
   28 
   29 static 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 */

Cache object: cf38df888763738debdb5784fb4fe30b


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.