From 5c95e6b678a697a5ddd010d7fb0cfd799ba98b97 Mon Sep 17 00:00:00 2001 From: Tony Gutierrez Date: Tue, 13 Aug 2019 13:52:25 -0400 Subject: [PATCH] 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 --- src/gpu-compute/shader.cc | 13 ------------- src/gpu-compute/shader.hh | 1 - 2 files changed, 14 deletions(-) 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(); }; -- 2.30.2