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

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

Merge "android: binder: Don't use sched_preempt_enable_no_resched."

parents 163aba2c 39788815
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -1701,8 +1701,16 @@ static void binder_transaction(struct binder_proc *proc,
	list_add_tail(&t->work.entry, target_list);
	tcomplete->type = BINDER_WORK_TRANSACTION_COMPLETE;
	list_add_tail(&tcomplete->entry, &thread->todo);
	if (target_wait)
	if (target_wait) {
		if (reply || !(t->flags & TF_ONE_WAY)) {
			preempt_disable();
			wake_up_interruptible_sync(target_wait);
			preempt_enable_no_resched();
		}
		else {
			wake_up_interruptible(target_wait);
		}
	}
	return;

err_get_unused_fd_failed: