linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sched/fair: use inclusive language in fair sched
@ 2021-06-08 10:18 Yejune Deng
  2021-06-08 11:25 ` Peter Zijlstra
  0 siblings, 1 reply; 2+ messages in thread
From: Yejune Deng @ 2021-06-08 10:18 UTC (permalink / raw)
  To: mingo, peterz, juri.lelli, vincent.guittot, dietmar.eggemann,
	rostedt, bsegall, mgorman, bristot
  Cc: linux-kernel, Yejune Deng

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@gmail.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 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] sched/fair: use inclusive language in fair sched
  2021-06-08 10:18 [PATCH] sched/fair: use inclusive language in fair sched Yejune Deng
@ 2021-06-08 11:25 ` Peter Zijlstra
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Zijlstra @ 2021-06-08 11:25 UTC (permalink / raw)
  To: Yejune Deng
  Cc: mingo, juri.lelli, vincent.guittot, dietmar.eggemann, rostedt,
	bsegall, mgorman, bristot, linux-kernel

On Tue, Jun 08, 2021 at 06:18:29PM +0800, Yejune Deng wrote:
> 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

Please do your homework.

https://lkml.kernel.org/r/YLSNzZbrdtZ6PPzH@hirez.programming.kicks-ass.net

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-08 11:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08 10:18 [PATCH] sched/fair: use inclusive language in fair sched Yejune Deng
2021-06-08 11:25 ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).