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

Commit 2634fc58 authored by Jerome Kim's avatar Jerome Kim Committed by wenju.xu
Browse files

[ALPS05471223] RT: fix racing under CONFIG_MTK_SCHED_INTEROP



fix racing between init_perf_order_domains() & find_lowest_rq()
it made invalid load during list manipulating.

MTK-Commit-Id: 79198bf0c16133491d19bbf6f0910f1712037d30

Change-Id: I183f8f074766cf2bd1f6a89d5ee80bef2d699c44
Signed-off-by: default avatarJerome Kim <Jerome.Kim@mediatek.com>
CR-Id: ALPS05471223
Feature: Energy Aware Scheduling Plus (EAS+)
parent 70ea28cf
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -1770,6 +1770,7 @@ static int find_lowest_rq(struct task_struct *task)
		!cpu_isolated(cpu))
		return cpu;

	if (pod_is_ready()) {
		for_each_perf_domain_ascending(domain) {
			tmp_domain[domain_cnt] = domain;
			domain_cnt++;
@@ -1781,6 +1782,7 @@ static int find_lowest_rq(struct task_struct *task)
					return iter_cpu;
			}
		}
	}
#endif

	/*