mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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:
committed by
mobile promotions
parent
9d2e773051
commit
87575d25fb
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user