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

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

Merge "sched: prevent race between disable window statistics and task grouping"

parents 3bc98842 dfb9634d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -3150,14 +3150,14 @@ void reset_all_window_stats(u64 window_start, unsigned int window_size)
	unsigned int old = 0, new = 0;
	struct related_thread_group *grp;

	read_lock(&related_thread_group_lock);

	disable_window_stats();

	reset_all_task_stats();

	local_irq_save(flags);

	read_lock(&related_thread_group_lock);

	for_each_possible_cpu(cpu)
		raw_spin_lock(&cpu_rq(cpu)->lock);

@@ -3223,10 +3223,10 @@ void reset_all_window_stats(u64 window_start, unsigned int window_size)
	for_each_possible_cpu(cpu)
		raw_spin_unlock(&cpu_rq(cpu)->lock);

	read_unlock(&related_thread_group_lock);

	local_irq_restore(flags);

	read_unlock(&related_thread_group_lock);

	trace_sched_reset_all_window_stats(window_start, window_size,
		sched_ktime_clock() - start_ts, reason, old, new);
}