Skip to contentSkip to conversation

sched/fair: cleanup master/slave usage in wake_wide()

PATCH In review [email protected] 2 participants 2 messages May 30, 2021 – May 31, 2021 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/fair: cleanup master/slave usage in wake_wide()

From: Tom Rix <[email protected]>

From Documentation/process/coding-style section for inclusive terminology, make these variable name changes in wake_wide()

master -> primary
slave -> secondary

---
 kernel/sched/fair.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
kernel/sched/fair.c +5 -5
index 161b92aa1c79..ade9f065c690 100644
@@ -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;
 }
Signature · 1 line
2.26.3
maintainer
#1 lore raw
Quoted 10 lines · On Sun, May 30, 2021 at 12:30:39PM -0700, [email protected] wrote:

From: Tom Rix <[email protected]>

From Documentation/process/coding-style section for inclusive terminology, make these variable name changes in wake_wide()

master -> primary
slave -> secondary

Please take your nonsense elsewhere. Unless there's a technical reason to change this code, don't touch it.