[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210530193039.2556526-1-trix@redhat.com>
Date: Sun, 30 May 2021 12:30:39 -0700
From: trix@...hat.com
To: mingo@...hat.com, peterz@...radead.org, juri.lelli@...hat.com,
vincent.guittot@...aro.org, dietmar.eggemann@....com,
rostedt@...dmis.org, bsegall@...gle.com, mgorman@...e.de,
bristot@...hat.com
Cc: linux-kernel@...r.kernel.org, Tom Rix <trix@...hat.com>
Subject: [PATCH] sched/fair: cleanup master/slave usage in wake_wide()
From: Tom Rix <trix@...hat.com>
>From Documentation/process/coding-style section for
inclusive terminology, make these variable name changes in
wake_wide()
master -> primary
slave -> secondary
Signed-off-by: Tom Rix <trix@...hat.com>
---
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 161b92aa1c79..ade9f065c690 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -5754,13 +5754,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.26.3
Powered by blists - more mailing lists