projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ef7145
)
sched/nohz: Use consistent variable names in find_new_ilb() and kick_ilb()
author
Ingo Molnar
<mingo@kernel.org>
Fri, 6 Oct 2023 10:25:17 +0000
(12:25 +0200)
committer
Ingo Molnar
<mingo@kernel.org>
Mon, 9 Oct 2023 10:21:23 +0000
(12:21 +0200)
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
kernel/sched/fair.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/sched/fair.c
b/kernel/sched/fair.c
index 2b63a14cd05ec885d815f39591118e78b5f7a8f0..f82b301740ece85744a9a91eb0b1b23bd16e8598 100644
(file)
--- a/
kernel/sched/fair.c
+++ b/
kernel/sched/fair.c
@@
-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;