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 <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1501504
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Konsta Holtta
2017-06-13 13:57:20 +03:00
committed by mobile promotions
parent 9d2e773051
commit 87575d25fb

View File

@@ -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;