Skip to content

Commit ce2910a

Browse files
committed
btl/usnic: s/get_nsec/get_nticks/g
Rename "get_nsec()" to "get_ticks()" to more accurately reflect that this function has no correlation to wall clock time at all. Signed-off-by: Jeff Squyres <[email protected]>
1 parent f3429d7 commit ce2910a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

opal/mca/btl/usnic/btl_usnic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extern uint64_t opal_btl_usnic_ticks;
5757
extern opal_recursive_mutex_t btl_usnic_lock;
5858

5959
static inline uint64_t
60-
get_nsec(void)
60+
get_ticks(void)
6161
{
6262
return opal_btl_usnic_ticks;
6363
}

opal/mca/btl/usnic/btl_usnic_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ opal_btl_usnic_module_progress_sends(
12261226

12271227
/* Is it time to send ACK? */
12281228
if (endpoint->endpoint_acktime == 0 ||
1229-
endpoint->endpoint_acktime <= get_nsec()) {
1229+
endpoint->endpoint_acktime <= get_ticks()) {
12301230
if (OPAL_LIKELY(opal_btl_usnic_ack_send(module, endpoint) == OPAL_SUCCESS)) {
12311231
opal_btl_usnic_remove_from_endpoints_needing_ack(endpoint);
12321232
} else {

opal/mca/btl/usnic/btl_usnic_recv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ opal_btl_usnic_update_window(
114114

115115
/* give this process a chance to send something before ACKing */
116116
if (0 == endpoint->endpoint_acktime) {
117-
endpoint->endpoint_acktime = get_nsec() + 50000; /* 50 usec */
117+
endpoint->endpoint_acktime = get_ticks() + 50000;
118118
}
119119

120120
/* Save this incoming segment in the received segmentss array on the

0 commit comments

Comments
 (0)