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

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

Merge "sched: walt: use_cycle_counter check before rq lock held"

parents dc80dd3f cea0f8aa
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -392,6 +392,13 @@ void sched_account_irqstart(int cpu, struct task_struct *curr, u64 wallclock)
	if (!rq->window_start || sched_disable_window_stats)
		return;

	/*
	 * We don’t have to note down an irqstart event when cycle
	 * counter is not used.
	 */
	if (!use_cycle_counter)
		return;

	if (is_idle_task(curr)) {
		/* We're here without rq->lock held, IRQ disabled */
		raw_spin_lock(&rq->lock);