[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200421144123.33580-1-songmuchun@bytedance.com>
Date: Tue, 21 Apr 2020 22:41:23 +0800
From: Muchun Song <songmuchun@...edance.com>
To: mingo@...nel.org, peterz@...radead.org, juri.lelli@...hat.com,
vincent.guittot@...aro.org, dietmar.eggemann@....com,
rostedt@...dmis.org, bsegall@...gle.com, mgorman@...e.de
Cc: linux-kernel@...r.kernel.org,
Muchun Song <songmuchun@...edance.com>
Subject: [PATCH] sched/fair: Use __this_cpu_read() in wake_wide()
The code is executed with preemption(and interrupts) disabled,
so it's safe to use __this_cpu_write().
Signed-off-by: Muchun Song <songmuchun@...edance.com>
---
kernel/sched/fair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 870853c47b63c..356660ec4ff3e 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -5705,7 +5705,7 @@ static int wake_wide(struct task_struct *p)
{
unsigned int master = current->wakee_flips;
unsigned int slave = p->wakee_flips;
- int factor = this_cpu_read(sd_llc_size);
+ int factor = __this_cpu_read(sd_llc_size);
if (master < slave)
swap(master, slave);
--
2.11.0
Powered by blists - more mailing lists