Skip to content
Snippets Groups Projects
Commit 95d88d61 authored by Oleg Perelet's avatar Oleg Perelet Committed by Iliyan Malchev
Browse files

msm: kgsl: remove power constraint on context destroy


Remove power constraint if parent context is
deleted before constraint expires.

Change-Id: I6a28fec842132733b2e9015333cc4d14c77daa8e
Signed-off-by: default avatarOleg Perelet <operelet@codeaurora.org>
parent de8fe046
No related branches found
No related tags found
No related merge requests found
...@@ -562,6 +562,15 @@ kgsl_context_destroy(struct kref *kref) ...@@ -562,6 +562,15 @@ kgsl_context_destroy(struct kref *kref)
kgsl_sharedmem_writel(device, &device->memstore, kgsl_sharedmem_writel(device, &device->memstore,
KGSL_MEMSTORE_OFFSET(context->id, eoptimestamp), 0); KGSL_MEMSTORE_OFFSET(context->id, eoptimestamp), 0);
/* clear device power constraint */
if (context->id == device->pwrctrl.constraint.owner_id) {
trace_kgsl_constraint(device,
device->pwrctrl.constraint.type,
device->pwrctrl.active_pwrlevel,
0);
device->pwrctrl.constraint.type = KGSL_CONSTRAINT_NONE;
}
idr_remove(&device->context_idr, context->id); idr_remove(&device->context_idr, context->id);
context->id = KGSL_CONTEXT_INVALID; context->id = KGSL_CONTEXT_INVALID;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment