Merge "msm: kgsl: Don't halt dispatcher if device is not in SUSPEND state"

This commit is contained in:
Linux Build Service Account 2018-11-09 06:19:11 -08:00 committed by Gerrit - the friendly Code Review server
commit 06ff6ccf78

View file

@ -2807,7 +2807,8 @@ static void adreno_suspend_device(struct kgsl_device *device,
struct adreno_gpudev *gpudev = ADRENO_GPU_DEVICE(adreno_dev);
int pm_event = pm_state.event;
adreno_dispatcher_halt(device);
if (device->state == KGSL_STATE_SUSPEND)
adreno_dispatcher_halt(device);
if ((pm_event == PM_EVENT_FREEZE) ||
(pm_event == PM_EVENT_QUIESCE) ||