[PATCH] sched/fair: use inclusive language in fair sched
From: Yejune Deng
Date: Tue Jun 08 2021 - 06:19:08 EST
This patch replaces some non-inclusive terms based on the proposal
that accepted by Linus.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=49decddd39e5f6132ccd7d9fdc3d7c470b0061bb
Signed-off-by: Yejune Deng <yejune.deng@xxxxxxxxx>
---
kernel/sched/fair.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 5d0d113..af438d0 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -5760,13 +5760,13 @@ static void record_wakee(struct task_struct *p)
*/
static int wake_wide(struct task_struct *p)
{
- unsigned int master = current->wakee_flips;
- unsigned int slave = p->wakee_flips;
+ unsigned int primary = current->wakee_flips;
+ unsigned int secondary = p->wakee_flips;
int factor = __this_cpu_read(sd_llc_size);
- if (master < slave)
- swap(master, slave);
- if (slave < factor || master < slave * factor)
+ if (primary < secondary)
+ swap(primary, secondary);
+ if (secondary < factor || primary < secondary * factor)
return 0;
return 1;
}
--
2.7.4