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

Commit 3bdd69a6 authored by Shrenuj Bansal's avatar Shrenuj Bansal
Browse files

msm: kgsl: Use main wait_event macros instead of helper



Currently, we seem to be using the helper functions for the
wait_event APIs in our code. Replace these with the main
wait_event APIs since these are consistent over different kernels
whereas the helper functions can change.

Change-Id: I76ee1ef49f807271e96c6fb77278e4ab581adf0d
Signed-off-by: default avatarShrenuj Bansal <shrenujb@codeaurora.org>
parent b8d7718f
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -86,11 +86,10 @@ int adreno_drawctxt_wait(struct adreno_device *adreno_dev,
	mutex_unlock(&device->mutex);

	if (timeout) {
		ret_temp = msecs_to_jiffies(timeout);
		__wait_event_interruptible_timeout(
		ret_temp = wait_event_interruptible_timeout(
			drawctxt->waiting,
			_check_context_timestamp(device, drawctxt, timestamp),
			ret_temp);
			msecs_to_jiffies(timeout));

		if (ret_temp == 0)
			ret = -ETIMEDOUT;
@@ -99,10 +98,8 @@ int adreno_drawctxt_wait(struct adreno_device *adreno_dev,
		else
			ret = (int) ret_temp;
	} else {
		__wait_event_interruptible(drawctxt->waiting,
			_check_context_timestamp(device, drawctxt, timestamp),
				ret_temp);
		ret = (int)ret_temp;
		ret = wait_event_interruptible(drawctxt->waiting,
			_check_context_timestamp(device, drawctxt, timestamp));
	}

	mutex_lock(&device->mutex);