gpu: nvgpu: add can_elpg check before elpg call

This CL is as part of phased changes to support NO LSPMU
Changes done is to add missing can_elpg check

JIRA NVGPU-296

Change-Id: Ic4e5ebf208e08a0a9fce6b449f15a2e768281bb1
Signed-off-by: Supriya <ssharatkumar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1592629
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Supriya
2017-11-06 17:07:34 +05:30
committed by mobile promotions
parent 870e76fbc7
commit b584bf8aa8

View File

@@ -2999,7 +2999,7 @@ int gk20a_alloc_obj_ctx(struct channel_gk20a *c, u32 class_num, u32 flags)
u32 lockboost_mask;
u32 lockboost;
if (g->support_pmu) {
if (g->support_pmu && g->can_elpg) {
err = nvgpu_pmu_disable_elpg(g);
if (err) {
nvgpu_err(g,