root/opal/mca/timer/linux/timer_linux.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
   3  *                         University Research and Technology
   4  *                         Corporation.  All rights reserved.
   5  * Copyright (c) 2004-2014 The University of Tennessee and The University
   6  *                         of Tennessee Research Foundation.  All rights
   7  *                         reserved.
   8  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
   9  *                         University of Stuttgart.  All rights reserved.
  10  * Copyright (c) 2004-2005 The Regents of the University of California.
  11  *                         All rights reserved.
  12  * Copyright (c) 2017      Cisco Systems, Inc.  All rights reserved
  13  * $COPYRIGHT$
  14  *
  15  * Additional copyrights may follow
  16  *
  17  * $HEADER$
  18  */
  19 
  20 #ifndef OPAL_MCA_TIMER_LINUX_TIMER_LINUX_H
  21 #define OPAL_MCA_TIMER_LINUX_TIMER_LINUX_H
  22 
  23 #include "opal_config.h"
  24 #include <opal/sys/timer.h>
  25 
  26 OPAL_DECLSPEC extern opal_timer_t (*opal_timer_base_get_cycles)(void);
  27 OPAL_DECLSPEC extern opal_timer_t (*opal_timer_base_get_usec)(void);
  28 
  29 OPAL_DECLSPEC extern opal_timer_t opal_timer_base_get_freq(void);
  30 
  31 #define OPAL_TIMER_CYCLE_NATIVE OPAL_HAVE_SYS_TIMER_GET_CYCLES
  32 #define OPAL_TIMER_CYCLE_SUPPORTED OPAL_HAVE_SYS_TIMER_GET_CYCLES
  33 #define OPAL_TIMER_USEC_NATIVE OPAL_HAVE_SYS_TIMER_GET_CYCLES
  34 #define OPAL_TIMER_USEC_SUPPORTED OPAL_HAVE_SYS_TIMER_GET_CYCLES
  35 
  36 #endif

/* [<][>][^][v][top][bottom][index][help] */