summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2017-06-28 06:07:34 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-29 16:30:26 -0400
commit87e9083986b79901f58893f0ecadf0850fc093f0 (patch)
treebc9312f81e00f93099e4dd1bdec2deb704b68910
parentce7574d39b2201c1ca14073c5691b72254ad2526 (diff)
gpu: nvgpu: post PMU_STATE_STARTED for pmu thread
Make the PMU_STATE_STARTED state change visible to the thread so that the thread quits when it is no longer necessary. Bug 200317814 Change-Id: I2a2d664bd772b5bb19ec096e50c9992fcec9170e Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master/r/1509968 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/common/pmu/pmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/pmu/pmu.c b/drivers/gpu/nvgpu/common/pmu/pmu.c
index cc87c89b..294034a7 100644
--- a/drivers/gpu/nvgpu/common/pmu/pmu.c
+++ b/drivers/gpu/nvgpu/common/pmu/pmu.c
@@ -354,7 +354,7 @@ static void pmu_setup_hw_enable_elpg(struct gk20a *g)
354 nvgpu_log_fn(g, " "); 354 nvgpu_log_fn(g, " ");
355 355
356 pmu->initialized = true; 356 pmu->initialized = true;
357 nvgpu_pmu_state_change(g, PMU_STATE_STARTED, false); 357 nvgpu_pmu_state_change(g, PMU_STATE_STARTED, true);
358 358
359 if (g->ops.pmu_ver.is_pmu_zbc_save_supported) { 359 if (g->ops.pmu_ver.is_pmu_zbc_save_supported) {
360 /* Save zbc table after PMU is initialized. */ 360 /* Save zbc table after PMU is initialized. */