gpu-compute: Remove unused function hostWakeUp from shader
authorTony Gutierrez <anthony.gutierrez@amd.com>
Tue, 13 Aug 2019 17:52:25 +0000 (13:52 -0400)
committerAnthony Gutierrez <anthony.gutierrez@amd.com>
Mon, 22 Jun 2020 16:14:35 +0000 (16:14 +0000)
Change-Id: Ib4415a7c5918da03bbd16fe9adb4dd593dcaa95c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29929
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/gpu-compute/shader.cc
src/gpu-compute/shader.hh

index aa7a6dd2f2a265a7d5ae4fbbc62813c640920157..f5e944471365abe4fa78da19045513baca822fda 100644 (file)
@@ -153,19 +153,6 @@ Shader::updateContext(int cid) {
     assert(gpuTc);
 }
 
-void
-Shader::hostWakeUp(BaseCPU *cpu) {
-    if (cpuPointer == cpu) {
-        if (gpuTc->status() == ThreadContext::Suspended)
-            cpu->activateContext(gpuTc->threadId());
-    } else {
-        //Make sure both dispatcher and shader are trying to
-        //wakeup same host. Hack here to enable kernel launch
-        //from multiple CPUs
-        panic("Dispatcher wants to wakeup a different host");
-    }
-}
-
 Shader*
 ShaderParams::create()
 {
index eeaf3437feb850007f9d9e6bc66a804e05868cf2..238f6e05cfe843b9c0588f4445457d62d14b9ae6 100644 (file)
@@ -301,7 +301,6 @@ class Shader : public ClockedObject
     Addr mmap(int length);
     void functionalTLBAccess(PacketPtr pkt, int cu_id, BaseTLB::Mode mode);
     void updateContext(int cid);
-    void hostWakeUp(BaseCPU *cpu);
     void notifyCuSleep();
 };