Commit da07d2f
sched/fair: Fixes for capacity inversion detection
Traversing the Perf Domains requires rcu_read_lock() to be held and is
conditional on sched_energy_enabled(). Ensure right protections applied.
Also skip capacity inversion detection for our own pd; which was an
error.
Fixes: 44c7b80 ("sched/fair: Detect capacity inversion")
Reported-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Qais Yousef (Google) <qyousef@layalina.io>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20230112122708.330667-3-qyousef@layalina.io1 parent e26fd28 commit da07d2f
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8868 | 8868 | | |
8869 | 8869 | | |
8870 | 8870 | | |
8871 | | - | |
| 8871 | + | |
8872 | 8872 | | |
8873 | | - | |
| 8873 | + | |
| 8874 | + | |
| 8875 | + | |
8874 | 8876 | | |
| 8877 | + | |
8875 | 8878 | | |
8876 | 8879 | | |
8877 | 8880 | | |
8878 | 8881 | | |
8879 | 8882 | | |
8880 | 8883 | | |
| 8884 | + | |
| 8885 | + | |
| 8886 | + | |
| 8887 | + | |
8881 | 8888 | | |
8882 | 8889 | | |
8883 | 8890 | | |
| |||
8902 | 8909 | | |
8903 | 8910 | | |
8904 | 8911 | | |
| 8912 | + | |
| 8913 | + | |
8905 | 8914 | | |
8906 | 8915 | | |
8907 | 8916 | | |
| |||
0 commit comments