|
@@ -4287,7 +4287,7 @@ static cycle_t e1000e_cyclecounter_read(const struct cyclecounter *cc)
|
|
|
systimeh = er32(SYSTIMH);
|
|
systimeh = er32(SYSTIMH);
|
|
|
systimel_2 = er32(SYSTIML);
|
|
systimel_2 = er32(SYSTIML);
|
|
|
/* Check for overflow. If there was no overflow, use the values */
|
|
/* Check for overflow. If there was no overflow, use the values */
|
|
|
- if (systimel_1 < systimel_2) {
|
|
|
|
|
|
|
+ if (systimel_1 <= systimel_2) {
|
|
|
systim = (cycle_t)systimel_1;
|
|
systim = (cycle_t)systimel_1;
|
|
|
systim |= (cycle_t)systimeh << 32;
|
|
systim |= (cycle_t)systimeh << 32;
|
|
|
} else {
|
|
} else {
|