timer/linux: remove global variable
This variable is only used in one file, so make it static. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
Этот коммит содержится в:
родитель
60ca372d60
Коммит
290d4598df
@ -9,6 +9,7 @@
|
||||
* University of Stuttgart. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2017 Cisco Systems, Inc. All rights reserved
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -22,8 +23,6 @@
|
||||
#include "opal_config.h"
|
||||
#include <opal/sys/timer.h>
|
||||
|
||||
OPAL_DECLSPEC extern opal_timer_t opal_timer_linux_freq;
|
||||
|
||||
OPAL_DECLSPEC extern opal_timer_t (*opal_timer_base_get_cycles)(void);
|
||||
OPAL_DECLSPEC extern opal_timer_t (*opal_timer_base_get_usec)(void);
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
* and Technology (RIST). All rights reserved.
|
||||
* Copyright (c) 2015-2017 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
|
||||
* Copyright (c) 2015-2017 Cisco Systems, Inc. All rights reserved
|
||||
* Copyright (c) 2016 Broadcom Limited. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
@ -49,7 +49,7 @@ opal_timer_t (*opal_timer_base_get_cycles)(void) = opal_timer_base_get_cycles_sy
|
||||
opal_timer_t (*opal_timer_base_get_usec)(void) = opal_timer_base_get_usec_sys_timer;
|
||||
#endif /* OPAL_HAVE_CLOCK_GETTIME */
|
||||
|
||||
opal_timer_t opal_timer_linux_freq = {0};
|
||||
static opal_timer_t opal_timer_linux_freq = {0};
|
||||
|
||||
static int opal_timer_linux_open(void);
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user