diff options
Diffstat (limited to 'src/mem/ruby/eventqueue/RubyEventQueue.cc')
-rw-r--r-- | src/mem/ruby/eventqueue/RubyEventQueue.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mem/ruby/eventqueue/RubyEventQueue.cc b/src/mem/ruby/eventqueue/RubyEventQueue.cc index c497f239a..3cfb52ff1 100644 --- a/src/mem/ruby/eventqueue/RubyEventQueue.cc +++ b/src/mem/ruby/eventqueue/RubyEventQueue.cc @@ -56,12 +56,12 @@ void RubyEventQueue::scheduleEventAbsolute(Consumer* consumer, Time timeAbs) { // Check to see if this is a redundant wakeup ASSERT(consumer != NULL); - if (consumer->getLastScheduledWakeup() != timeAbs) { + if (!consumer->alreadyScheduled(timeAbs)) { // This wakeup is not redundant - RubyEventQueueNode *thisNode = new RubyEventQueueNode(consumer); + RubyEventQueueNode *thisNode = new RubyEventQueueNode(consumer, this); assert(timeAbs > getTime()); schedule(thisNode, (timeAbs * m_clock)); - consumer->setLastScheduledWakeup(timeAbs * m_clock); + consumer->insertScheduledWakeupTime(timeAbs); } } |