root/opal/mca/timer/base/timer_base_open.c

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

DEFINITIONS

This source file includes following definitions.
  1. mca_timer_base_register

   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) 2014 Cisco Systems, Inc.  All rights reserved.
  13  * $COPYRIGHT$
  14  *
  15  * Additional copyrights may follow
  16  *
  17  * $HEADER$
  18  */
  19 
  20 
  21 #include "opal_config.h"
  22 
  23 #include "opal/constants.h"
  24 #include "opal/mca/timer/base/base.h"
  25 
  26 bool mca_timer_base_monotonic = true;
  27 
  28 /*
  29  * The following file was created by configure.  It contains extern
  30  * statements and the definition of an array of pointers to each
  31  * component's public mca_base_component_t struct.
  32  */
  33 #include "opal/mca/timer/base/static-components.h"
  34 
  35 static int mca_timer_base_register(mca_base_register_flag_t flags)
  36 {
  37     (void) mca_base_var_register("opal", "timer", "require", "monotonic",
  38                                  "Node-level monotonic timer required (default yes)",
  39                                  MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0,
  40                                  OPAL_INFO_LVL_5,
  41                                  MCA_BASE_VAR_SCOPE_LOCAL,
  42                                  &mca_timer_base_monotonic);
  43 
  44     return OPAL_SUCCESS;
  45 }
  46 
  47 /*
  48  * Globals
  49  */
  50 /* Use default register/open/close functions */
  51 MCA_BASE_FRAMEWORK_DECLARE(opal, timer, "OPAL OS timer", mca_timer_base_register, NULL, NULL,
  52                            mca_timer_base_static_components, 0);

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