Print this page
4823 don't open-code NSEC2MSEC and MSEC2NSEC
*** 93,103 ****
* is overloaded in meaning (it could be null because there
* are no items in the list, or it could be null because this
* is the last item on the list, which are very different cases).
*/
! node->iutn_abs_timeout = gethrtime() + (msec * (NANOSEC / MILLISEC));
if (tq->iutq_head != NULL &&
tq->iutq_head->iutn_abs_timeout < node->iutn_abs_timeout)
for (after = tq->iutq_head; after->iutn_next != NULL;
after = after->iutn_next)
--- 93,103 ----
* is overloaded in meaning (it could be null because there
* are no items in the list, or it could be null because this
* is the last item on the list, which are very different cases).
*/
! node->iutn_abs_timeout = gethrtime() + MSEC2NSEC(msec);
if (tq->iutq_head != NULL &&
tq->iutq_head->iutn_abs_timeout < node->iutn_abs_timeout)
for (after = tq->iutq_head; after->iutn_next != NULL;
after = after->iutn_next)