emulex_oce: Don't clobber ticks define

This commit is contained in:
Alexander von Gluck IV 2018-11-28 15:47:15 +00:00
parent b9ca2a8d0b
commit 4cd471eb17
2 changed files with 4 additions and 4 deletions

View File

@ -1910,10 +1910,10 @@ oce_eqd_set_periodic(POCE_SOFTC sc)
now = ticks;
/* Over flow check */
if ((now < aic->ticks) || (eqo->intr < aic->intr_prev))
if ((now < aic->_ticks) || (eqo->intr < aic->intr_prev))
goto done;
delta = now - aic->ticks;
delta = now - aic->_ticks;
tps = delta/hz;
/* Interrupt rate based on elapsed ticks */
@ -1943,7 +1943,7 @@ modify_eqd:
}
done:
aic->intr_prev = eqo->intr;
aic->ticks = now;
aic->_ticks = now;
}
/* Is there atleast one eq that needs to be modified? */

View File

@ -524,7 +524,7 @@ struct oce_aic_obj { /* Adaptive interrupt coalescing (AIC) info */
uint32_t max_eqd; /* in usecs */
uint32_t cur_eqd; /* in usecs */
uint32_t et_eqd; /* configured value when aic is off */
uint64_t ticks;
uint64_t _ticks;
uint64_t intr_prev;
};