eventq: convert all usage of events to use the new API.
For now, there is still a single global event queue, but this is necessary for making the steps towards a parallelized m5.
This commit is contained in:
@@ -246,7 +246,7 @@ EtherTap::process(int revent)
|
||||
DPRINTF(Ethernet, "bus busy...buffer for retransmission\n");
|
||||
packetBuffer.push(packet);
|
||||
if (!txEvent.scheduled())
|
||||
txEvent.schedule(curTick + retryTime);
|
||||
schedule(txEvent, curTick + retryTime);
|
||||
} else if (dump) {
|
||||
dump->dump(packet);
|
||||
}
|
||||
@@ -269,7 +269,7 @@ EtherTap::retransmit()
|
||||
}
|
||||
|
||||
if (!packetBuffer.empty() && !txEvent.scheduled())
|
||||
txEvent.schedule(curTick + retryTime);
|
||||
schedule(txEvent, curTick + retryTime);
|
||||
}
|
||||
|
||||
EtherInt*
|
||||
|
||||
Reference in New Issue
Block a user