Merge "kgsl: pwrctrl: Add sub_type constraint check to update expiry"

This commit is contained in:
QCTECMDR Service 2024-08-26 01:29:59 -07:00 committed by Gerrit - the friendly Code Review server
commit 065610f845

View File

@ -314,7 +314,7 @@ void kgsl_pwrctrl_set_constraint(struct kgsl_device *device,
kgsl_pwrctrl_pwrlevel_change(device, constraint);
/* Trace the constraint being set by the driver */
trace_kgsl_constraint(device, pwrc_old->type, constraint, 1);
} else if (pwrc_old->type == pwrc->type) {
} else if ((pwrc_old->type == pwrc->type) && (pwrc_old->sub_type == pwrc->sub_type)) {
pwrc_old->owner_id = id;
pwrc_old->owner_timestamp = ts;
pwrc_old->expires = jiffies +