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

Commit ef546abc authored by Channagoud Kadabi's avatar Channagoud Kadabi
Browse files

Revert "kthread: Ensure task isn't preempted before dequeue in kthread_parkme"



The right fix to address the issue has been pulled from upstream commit
"<9cd4f1a4e7a8> smp/hotplug: Move unparking of percpu threads to the
control CPU"

Change-Id: I3721ae1b7c8718c35fca1b7c7ef53ce80044d0cf
Signed-off-by: default avatarChannagoud Kadabi <ckadabi@codeaurora.org>
parent ceb354b1
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -160,11 +160,9 @@ static void __kthread_parkme(struct kthread *self)
{
	__set_current_state(TASK_PARKED);
	while (test_bit(KTHREAD_SHOULD_PARK, &self->flags)) {
		preempt_disable();
		if (!test_and_set_bit(KTHREAD_IS_PARKED, &self->flags))
			complete(&self->parked);
		schedule_preempt_disabled();
		preempt_enable();
		schedule();
		__set_current_state(TASK_PARKED);
	}
	clear_bit(KTHREAD_IS_PARKED, &self->flags);