1
1

Rename poorly-named global: usnic_ticks -> ompi_btl_usnic_ticks

cmr=v1.7.5:reviewer=dgoodell

This commit was SVN r30752.
Этот коммит содержится в:
Jeff Squyres 2014-02-17 21:37:13 +00:00
родитель d246d190ed
Коммит a80a24029d
2 изменённых файлов: 8 добавлений и 8 удалений

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

@ -11,7 +11,7 @@
* All rights reserved.
* Copyright (c) 2006 Sandia National Laboratories. All rights
* reserved.
* Copyright (c) 2011-2013 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2011-2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -49,11 +49,11 @@ BEGIN_C_DECLS
* when progression gets called. It could be incremented by different amounts
* at other times as needed or as tuning dictates.
*/
extern uint64_t usnic_ticks;
extern uint64_t ompi_btl_usnic_ticks;
static inline uint64_t
get_nsec(void)
{
return usnic_ticks;
return ompi_btl_usnic_ticks;
}
#ifndef container_of

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

@ -11,7 +11,7 @@
* All rights reserved.
* Copyright (c) 2006 Sandia National Laboratories. All rights
* reserved.
* Copyright (c) 2008-2013 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2008-2014 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2012 Los Alamos National Security, LLC. All rights
* reserved.
* $COPYRIGHT$
@ -79,7 +79,7 @@
#define max(a,b) ((a) > (b) ? (a) : (b))
/* simulated clock */
uint64_t usnic_ticks = 0;
uint64_t ompi_btl_usnic_ticks = 0;
static opal_event_t usnic_clock_timer_event;
static bool usnic_clock_timer_event_set = false;
static struct timeval usnic_clock_timeout;
@ -439,7 +439,7 @@ static void
usnic_clock_callback(int fd, short flags, void *timeout)
{
/* 1ms == 1,000,000 ns */
usnic_ticks += 1000000;
ompi_btl_usnic_ticks += 1000000;
/* run progress to make sure time change gets noticed */
usnic_component_progress();
@ -936,7 +936,7 @@ static int usnic_component_progress(void)
static bool fastpath_ok=true;
/* update our simulated clock */
usnic_ticks += 5000;
ompi_btl_usnic_ticks += 5000;
count = 0;
if (fastpath_ok) {
@ -1056,7 +1056,7 @@ static int usnic_component_progress_2(void)
int c;
/* update our simulated clock */
usnic_ticks += 5000;
ompi_btl_usnic_ticks += 5000;
/* Poll for completions */
for (i = 0; i < mca_btl_usnic_component.num_modules; i++) {