From 87575d25fb5328b895e11e03a9856363f2e8b5f7 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Tue, 13 Jun 2017 13:57:20 +0300 Subject: gpu: nvgpu: exit pmu thread after boot When the pmu reaches PMU_STATE_STARTED, exit from the nvgpu_pg_init_task thread as it's no longer necessary. This prevents a possibly long wait on the signaling condition, which would make Linux think that the thread has been blocked and print a warning. Bug 200317814 Change-Id: I4104896867ee13eb9d53b1b19b659a7839adb73f Signed-off-by: Konsta Holtta Reviewed-on: http://git-master/r/1501504 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/pmu/pmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/common') diff --git a/drivers/gpu/nvgpu/common/pmu/pmu.c b/drivers/gpu/nvgpu/common/pmu/pmu.c index fc72d1fc..15b57988 100644 --- a/drivers/gpu/nvgpu/common/pmu/pmu.c +++ b/drivers/gpu/nvgpu/common/pmu/pmu.c @@ -347,8 +347,8 @@ static int nvgpu_pg_init_task(void *arg) pmu_setup_hw_enable_elpg(g); break; case PMU_STATE_STARTED: - nvgpu_pmu_dbg(g, "PMU booted"); - break; + nvgpu_pmu_dbg(g, "PMU booted, thread exiting"); + return 0; default: nvgpu_pmu_dbg(g, "invalid state"); break; -- cgit v1.2.2