mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
sched/nohz: Use consistent variable names in find_new_ilb() and kick_ilb()
Use 'ilb_cpu' consistently in both functions. Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org> Link: https://lore.kernel.org/r/20231006102518.2452758-3-mingo@kernel.org
This commit is contained in:
parent
7ef7145a2b
commit
b6dd698483
@ -11514,18 +11514,18 @@ static inline int on_null_domain(struct rq *rq)
|
||||
*/
|
||||
static inline int find_new_ilb(void)
|
||||
{
|
||||
int ilb;
|
||||
const struct cpumask *hk_mask;
|
||||
int ilb_cpu;
|
||||
|
||||
hk_mask = housekeeping_cpumask(HK_TYPE_MISC);
|
||||
|
||||
for_each_cpu_and(ilb, nohz.idle_cpus_mask, hk_mask) {
|
||||
for_each_cpu_and(ilb_cpu, nohz.idle_cpus_mask, hk_mask) {
|
||||
|
||||
if (ilb == smp_processor_id())
|
||||
if (ilb_cpu == smp_processor_id())
|
||||
continue;
|
||||
|
||||
if (idle_cpu(ilb))
|
||||
return ilb;
|
||||
if (idle_cpu(ilb_cpu))
|
||||
return ilb_cpu;
|
||||
}
|
||||
|
||||
return nr_cpu_ids;
|
||||
|
Loading…
Reference in New Issue
Block a user