1
1

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>
Этот коммит содержится в:
Jeff Squyres 2017-03-15 11:14:30 -07:00 коммит произвёл Joshua Hursey
родитель 60ca372d60
Коммит 290d4598df
2 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -9,6 +9,7 @@
* University of Stuttgart. All rights reserved. * University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California. * Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved. * All rights reserved.
* Copyright (c) 2017 Cisco Systems, Inc. All rights reserved
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -22,8 +23,6 @@
#include "opal_config.h" #include "opal_config.h"
#include <opal/sys/timer.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_cycles)(void);
OPAL_DECLSPEC extern opal_timer_t (*opal_timer_base_get_usec)(void); OPAL_DECLSPEC extern opal_timer_t (*opal_timer_base_get_usec)(void);

Просмотреть файл

@ -14,7 +14,7 @@
* and Technology (RIST). All rights reserved. * and Technology (RIST). All rights reserved.
* Copyright (c) 2015-2017 Los Alamos National Security, LLC. All rights * Copyright (c) 2015-2017 Los Alamos National Security, LLC. All rights
* reserved. * 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 (c) 2016 Broadcom Limited. All rights reserved.
* $COPYRIGHT$ * $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; opal_timer_t (*opal_timer_base_get_usec)(void) = opal_timer_base_get_usec_sys_timer;
#endif /* OPAL_HAVE_CLOCK_GETTIME */ #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); static int opal_timer_linux_open(void);