From 13093eff52d0ef9071bb09cade01ea064c99468d Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Mon, 23 Oct 2017 15:52:00 -0700 Subject: gpu: nvgpu: add g cross reference in boardobjgrp Added a pointer to GPU context in boardobjgrp, and updated constructors. It will be useful to free allocated DMA resources. JIRA EVLR-1959 Bug 200352099 Change-Id: I006e4f970c9a2525dabdfd6ad417be64e36b7b68 Signed-off-by: Thomas Fleury Reviewed-on: https://git-master.nvidia.com/r/1586551 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/pstate/pstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/pstate') diff --git a/drivers/gpu/nvgpu/pstate/pstate.c b/drivers/gpu/nvgpu/pstate/pstate.c index 937756d3..e164cc83 100644 --- a/drivers/gpu/nvgpu/pstate/pstate.c +++ b/drivers/gpu/nvgpu/pstate/pstate.c @@ -363,7 +363,7 @@ static int pstate_sw_setup(struct gk20a *g) if (err) return err; - err = boardobjgrpconstruct_e32(&g->perf_pmu.pstatesobjs.super); + err = boardobjgrpconstruct_e32(g, &g->perf_pmu.pstatesobjs.super); if (err) { nvgpu_err(g, "error creating boardobjgrp for pstates, err=%d", -- cgit v1.2.2