From 87e9083986b79901f58893f0ecadf0850fc093f0 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Wed, 28 Jun 2017 13:07:34 +0300 Subject: 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 Reviewed-on: https://git-master/r/1509968 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/pmu/pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) nvgpu_log_fn(g, " "); pmu->initialized = true; - nvgpu_pmu_state_change(g, PMU_STATE_STARTED, false); + nvgpu_pmu_state_change(g, PMU_STATE_STARTED, true); if (g->ops.pmu_ver.is_pmu_zbc_save_supported) { /* Save zbc table after PMU is initialized. */ -- cgit v1.2.2