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

Commit c1979b8f authored by Maria Yu's avatar Maria Yu
Browse files

sched: Allow __sched_setscheduler call from interrupt context if not pi



BUG() is only needed for pi case which needed
call to a rtmutex function and grab a spin_lock.
While in pi case is a simplified logic to normalize
tasks, it is safe to be called from interrupt
context.

CRs-Fixed: 2101157
Change-Id: Icdcb9356692fc30d7b5af40f816381df5b0f0d58
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
parent 9efa0593
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4293,6 +4293,7 @@ static int __sched_setscheduler(struct task_struct *p,
	struct rq *rq;

	/* may grab non-irq protected spin_locks */
	if (pi)
		BUG_ON(in_interrupt());
recheck:
	/* double check policy once rq lock held */