mem-garnet: Add a check to see if router is already scheduled
authorSrikant Bharadwaj <srikant.bharadwaj@amd.com>
Tue, 16 Jul 2019 20:34:31 +0000 (16:34 -0400)
committerSrikant Bharadwaj <srikant.bharadwaj@amd.com>
Fri, 4 Sep 2020 22:17:36 +0000 (22:17 +0000)
commit028a1fa87ec8a5c8e1c1bcdca0bb0d72daaefb16
treee6eeced1fce01e7d372c1056fd5025ff556511d5
parent615067c163f512da360dad7f0a1a6e58bb5753ac
mem-garnet: Add a check to see if router is already scheduled

Currently the Switch Allocator takes up most of the simulation
wall clock time. This function checks for all VCs to see if it
should wakeup next. The input units which are simulated before
the switch allocator could have scheduled it already. This patch
adds a check for it.

Change-Id: I8609d4e7f925aa5e97198f6cd07466530f6fcf4c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32600
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
src/mem/ruby/network/garnet2.0/SwitchAllocator.cc