emulex_oce: Don't clobber ticks define
This commit is contained in:
parent
b9ca2a8d0b
commit
4cd471eb17
@ -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? */
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user