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

Commit ef698e71 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Change polling to use do while loop" into msm-4.9

parents c4b2fb08 d9e09dc6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -813,12 +813,12 @@ static int timed_poll_check(struct kgsl_device *device,

	t = jiffies + msecs_to_jiffies(timeout);

	while (!time_after(jiffies, t)) {
	do {
		kgsl_gmu_regread(device, offset, &value);
		if ((value & mask) == expected_ret)
			return 0;
		cpu_relax();
	}
	} while (!time_after(jiffies, t));

	return -EINVAL;
}