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-alpha/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  * linux/include/asm-alpha/timex.h
    3  *
    4  * ALPHA architecture timex specifications
    5  */
    6 #ifndef _ASMALPHA_TIMEX_H
    7 #define _ASMALPHA_TIMEX_H
    8 
    9 #define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
   10 
   11 /*
   12  * Standard way to access the cycle counter.
   13  * Currently only used on SMP for scheduling.
   14  *
   15  * Only the low 32 bits are available as a continuously counting entity. 
   16  * But this only means we'll force a reschedule every 8 seconds or so,
   17  * which isn't an evil thing.
   18  */
   19 
   20 typedef unsigned int cycles_t;
   21 
   22 static inline cycles_t get_cycles (void)
   23 {
   24         cycles_t ret;
   25         __asm__ __volatile__ ("rpcc %0" : "=r"(ret));
   26         return ret;
   27 }
   28 
   29 #define vxtime_lock()           do {} while (0)
   30 #define vxtime_unlock()         do {} while (0)
   31 
   32 #endif

Cache object: e178f8abb67f2d5863d0c32dcb0b893a


[ 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.