diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2017-06-13 06:57:20 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-19 05:15:59 -0400 |
commit | 87575d25fb5328b895e11e03a9856363f2e8b5f7 (patch) | |
tree | 59452f0303de6e47122c95a5690954e9602ae178 /drivers/gpu/nvgpu/common/pmu/pmu.c | |
parent | 9d2e7730515acf3114f7d1354277db81b5b022b0 (diff) |
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>
Diffstat (limited to 'drivers/gpu/nvgpu/common/pmu/pmu.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/pmu/pmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
347 | pmu_setup_hw_enable_elpg(g); | 347 | pmu_setup_hw_enable_elpg(g); |
348 | break; | 348 | break; |
349 | case PMU_STATE_STARTED: | 349 | case PMU_STATE_STARTED: |
350 | nvgpu_pmu_dbg(g, "PMU booted"); | 350 | nvgpu_pmu_dbg(g, "PMU booted, thread exiting"); |
351 | break; | 351 | return 0; |
352 | default: | 352 | default: |
353 | nvgpu_pmu_dbg(g, "invalid state"); | 353 | nvgpu_pmu_dbg(g, "invalid state"); |
354 | break; | 354 | break; |