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

Commit f8df7a03 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched/fair: Prevent false-positive lockdep warnings"

parents 2c97fb21 5ef98409
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -9280,11 +9280,13 @@ static void detach_task(struct task_struct *p, struct lb_env *env)

	p->on_rq = TASK_ON_RQ_MIGRATING;
	deactivate_task(env->src_rq, p, DEQUEUE_NOCLOCK);
	lockdep_off();
	double_lock_balance(env->src_rq, env->dst_rq);
	if (!(env->src_rq->clock_update_flags & RQCF_UPDATED))
		update_rq_clock(env->src_rq);
	set_task_cpu(p, env->dst_cpu);
	double_unlock_balance(env->src_rq, env->dst_rq);
	lockdep_on();
}

/*