Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched/topology: Remove root_domain::max_cpu_capacity

The value is no longer used as we now keep track of max_allowed_capacity
for each task instead.

Signed-off-by: Qais Yousef <qyousef@layalina.io>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20240324004552.999936-4-qyousef@layalina.io

authored by

Qais Yousef and committed by
Ingo Molnar
fa427e8e 22d56074

+2 -13
-2
kernel/sched/sched.h
··· 917 917 cpumask_var_t rto_mask; 918 918 struct cpupri cpupri; 919 919 920 - unsigned long max_cpu_capacity; 921 - 922 920 /* 923 921 * NULL-terminated list of performance domains intersecting with the 924 922 * CPUs of the rd. Protected by RCU.
+2 -11
kernel/sched/topology.c
··· 2514 2514 /* Attach the domains */ 2515 2515 rcu_read_lock(); 2516 2516 for_each_cpu(i, cpu_map) { 2517 - unsigned long capacity; 2518 - 2519 2517 rq = cpu_rq(i); 2520 2518 sd = *per_cpu_ptr(d.sd, i); 2521 - 2522 - capacity = arch_scale_cpu_capacity(i); 2523 - /* Use READ_ONCE()/WRITE_ONCE() to avoid load/store tearing: */ 2524 - if (capacity > READ_ONCE(d.rd->max_cpu_capacity)) 2525 - WRITE_ONCE(d.rd->max_cpu_capacity, capacity); 2526 2519 2527 2520 cpu_attach_domain(sd, d.rd, i); 2528 2521 ··· 2530 2537 if (has_cluster) 2531 2538 static_branch_inc_cpuslocked(&sched_cluster_active); 2532 2539 2533 - if (rq && sched_debug_verbose) { 2534 - pr_info("root domain span: %*pbl (max cpu_capacity = %lu)\n", 2535 - cpumask_pr_args(cpu_map), rq->rd->max_cpu_capacity); 2536 - } 2540 + if (rq && sched_debug_verbose) 2541 + pr_info("root domain span: %*pbl\n", cpumask_pr_args(cpu_map)); 2537 2542 2538 2543 ret = 0; 2539 2544 error: