topology.c (c22645f4c8f021fb1c5e7189eb1f968132cc0844) | topology.c (f9a25f776d780bfa3279f0b6e5f5cf3224997976) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Scheduler topology setup/handling methods 4 */ 5#include "sched.h" 6 7DEFINE_MUTEX(sched_domains_mutex); 8 --- 2189 unchanged lines hidden (view full) --- 2198 } else { 2199 n = ndoms_new; 2200 } 2201 2202 /* Destroy deleted domains: */ 2203 for (i = 0; i < ndoms_cur; i++) { 2204 for (j = 0; j < n && !new_topology; j++) { 2205 if (cpumask_equal(doms_cur[i], doms_new[j]) && | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Scheduler topology setup/handling methods 4 */ 5#include "sched.h" 6 7DEFINE_MUTEX(sched_domains_mutex); 8 --- 2189 unchanged lines hidden (view full) --- 2198 } else { 2199 n = ndoms_new; 2200 } 2201 2202 /* Destroy deleted domains: */ 2203 for (i = 0; i < ndoms_cur; i++) { 2204 for (j = 0; j < n && !new_topology; j++) { 2205 if (cpumask_equal(doms_cur[i], doms_new[j]) && |
2206 dattrs_equal(dattr_cur, i, dattr_new, j)) | 2206 dattrs_equal(dattr_cur, i, dattr_new, j)) { 2207 struct root_domain *rd; 2208 2209 /* 2210 * This domain won't be destroyed and as such 2211 * its dl_bw->total_bw needs to be cleared. It 2212 * will be recomputed in function 2213 * update_tasks_root_domain(). 2214 */ 2215 rd = cpu_rq(cpumask_any(doms_cur[i]))->rd; 2216 dl_clear_root_domain(rd); |
2207 goto match1; | 2217 goto match1; |
2218 } |
|
2208 } 2209 /* No match - a current sched domain not in new doms_new[] */ 2210 detach_destroy_domains(doms_cur[i]); 2211match1: 2212 ; 2213 } 2214 2215 n = ndoms_cur; --- 60 unchanged lines hidden --- | 2219 } 2220 /* No match - a current sched domain not in new doms_new[] */ 2221 detach_destroy_domains(doms_cur[i]); 2222match1: 2223 ; 2224 } 2225 2226 n = ndoms_cur; --- 60 unchanged lines hidden --- |