This source file includes following definitions.
- opal_sys_timer_is_monotonic
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 
  20 
  21 
  22 
  23 
  24 
  25 
  26 
  27 
  28 
  29 #ifndef OPAL_SYS_TIMER_H
  30 #define OPAL_SYS_TIMER_H 1
  31 
  32 #include "opal_config.h"
  33 
  34 #include "opal/sys/architecture.h"
  35 
  36 #ifdef HAVE_SYS_TYPES_H
  37 #include <sys/types.h>
  38 #endif
  39 
  40 
  41 
  42 #ifdef OPAL_DISABLE_INLINE_ASM
  43 #undef OPAL_C_GCC_INLINE_ASSEMBLY
  44 #define OPAL_C_GCC_INLINE_ASSEMBLY 0
  45 #endif
  46 
  47 
  48 
  49 
  50 #if defined(c_plusplus) || defined(__cplusplus)
  51 #define OPAL_GCC_INLINE_ASSEMBLY OPAL_CXX_GCC_INLINE_ASSEMBLY
  52 #else
  53 #define OPAL_GCC_INLINE_ASSEMBLY OPAL_C_GCC_INLINE_ASSEMBLY
  54 #endif
  55 
  56 
  57 
  58 
  59 
  60 
  61 
  62 
  63 
  64 #define OPAL_TIMER_MONOTONIC 1
  65 
  66 BEGIN_C_DECLS
  67 
  68 
  69 
  70 
  71 #if defined(DOXYGEN)
  72 
  73 #elif OPAL_ASSEMBLY_ARCH == OPAL_X86_64
  74 #include "opal/sys/x86_64/timer.h"
  75 #elif OPAL_ASSEMBLY_ARCH == OPAL_ARM
  76 #include "opal/sys/arm/timer.h"
  77 #elif OPAL_ASSEMBLY_ARCH == OPAL_ARM64
  78 #include "opal/sys/arm64/timer.h"
  79 #elif OPAL_ASSEMBLY_ARCH == OPAL_IA32
  80 #include "opal/sys/ia32/timer.h"
  81 #elif OPAL_ASSEMBLY_ARCH == OPAL_IA64
  82 #include "opal/sys/ia64/timer.h"
  83 #elif OPAL_ASSEMBLY_ARCH == OPAL_POWERPC32
  84 #include "opal/sys/powerpc/timer.h"
  85 #elif OPAL_ASSEMBLY_ARCH == OPAL_POWERPC64
  86 #include "opal/sys/powerpc/timer.h"
  87 #elif OPAL_ASSEMBLY_ARCH == OPAL_SPARCV9_32
  88 #include "opal/sys/sparcv9/timer.h"
  89 #elif OPAL_ASSEMBLY_ARCH == OPAL_SPARCV9_64
  90 #include "opal/sys/sparcv9/timer.h"
  91 #elif OPAL_ASSEMBLY_ARCH == OPAL_MIPS
  92 #include "opal/sys/mips/timer.h"
  93 #endif
  94 
  95 #ifndef DOXYGEN
  96 #ifndef OPAL_HAVE_SYS_TIMER_GET_CYCLES
  97 #define OPAL_HAVE_SYS_TIMER_GET_CYCLES 0
  98 
  99 typedef long opal_timer_t;
 100 #endif
 101 
 102 #ifndef OPAL_HAVE_SYS_TIMER_GET_FREQ
 103 #define OPAL_HAVE_SYS_TIMER_GET_FREQ 0
 104 #endif
 105 #endif
 106 
 107 #ifndef OPAL_HAVE_SYS_TIMER_IS_MONOTONIC
 108 
 109 #define OPAL_HAVE_SYS_TIMER_IS_MONOTONIC 1
 110 
 111 static inline bool opal_sys_timer_is_monotonic (void)
 112 {
 113     return OPAL_TIMER_MONOTONIC;
 114 }
 115 
 116 #endif
 117 
 118 END_C_DECLS
 119 
 120 #endif