Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fcf65f1 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Skip state change in idle check, if requested state is NONE"

parents 61266429 3734d8f9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2461,8 +2461,9 @@ void kgsl_idle_check(struct work_struct *work)

	requested_state = device->requested_state;

	if (device->state == KGSL_STATE_ACTIVE
		   || device->state ==  KGSL_STATE_NAP) {
	if ((requested_state != KGSL_STATE_NONE) &&
		(device->state == KGSL_STATE_ACTIVE
			|| device->state ==  KGSL_STATE_NAP)) {

		if (!atomic_read(&device->active_cnt)) {
			spin_lock(&device->submit_lock);