diff --git a/drivers/gpu/msm/adreno_ringbuffer.c b/drivers/gpu/msm/adreno_ringbuffer.c index 60aa618f517d1dfbdbadd66a8365a8a7b172e543..6b0eb7389c232a2d506ca0794e024cb11a3f0408 100644 --- a/drivers/gpu/msm/adreno_ringbuffer.c +++ b/drivers/gpu/msm/adreno_ringbuffer.c @@ -20,6 +20,7 @@ #include "kgsl.h" #include "kgsl_sharedmem.h" #include "kgsl_cffdump.h" +#include "kgsl_trace.h" #include "adreno.h" #include "adreno_pm4types.h" @@ -1189,6 +1190,10 @@ void adreno_ringbuffer_set_constraint(struct kgsl_device *device, device->pwrctrl.constraint.owner_id = context->id; device->pwrctrl.constraint.expires = jiffies + device->pwrctrl.interval_timeout; + /* Trace the constraint being set by the driver */ + trace_kgsl_constraint(device, + device->pwrctrl.constraint.type, + constraint, 1); } else if ((device->pwrctrl.constraint.type == context->pwr_constraint.type) && (device->pwrctrl.constraint.hint.pwrlevel.level ==