From: Tony Gutierrez Date: Tue, 13 Aug 2019 17:52:25 +0000 (-0400) Subject: gpu-compute: Remove unused function hostWakeUp from shader X-Git-Tag: v20.1.0.0~543 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c95e6b678a697a5ddd010d7fb0cfd799ba98b97;p=gem5.git gpu-compute: Remove unused function hostWakeUp from shader Change-Id: Ib4415a7c5918da03bbd16fe9adb4dd593dcaa95c Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29929 Reviewed-by: Anthony Gutierrez Maintainer: Anthony Gutierrez Tested-by: kokoro --- diff --git a/src/gpu-compute/shader.cc b/src/gpu-compute/shader.cc index aa7a6dd2f..f5e944471 100644 --- a/src/gpu-compute/shader.cc +++ b/src/gpu-compute/shader.cc @@ -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() { diff --git a/src/gpu-compute/shader.hh b/src/gpu-compute/shader.hh index eeaf3437f..238f6e05c 100644 --- a/src/gpu-compute/shader.hh +++ b/src/gpu-compute/shader.hh @@ -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(); };