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

Commit 927908b3 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 b858951f ece8e78a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2553,8 +2553,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);