aboutsummaryrefslogtreecommitdiff
path: root/kernel/sched/fair.c
diff options
context:
space:
mode:
authorMuchun Song <songmuchun@bytedance.com>2020-04-21 22:41:23 +0800
committerPeter Zijlstra <peterz@infradead.org>2020-04-30 20:14:41 +0200
commit17c891ab349138e8d8a59ca2700f42ce8af96f4e (patch)
treeb662d232acd8ac34bc3ee13906501534f93def64 /kernel/sched/fair.c
parentbf2c59fce4074e55d622089b34be3a6bc95484fb (diff)
downloadlinux-17c891ab349138e8d8a59ca2700f42ce8af96f4e.tar.gz
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@bytedance.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20200421144123.33580-1-songmuchun@bytedance.com
Diffstat (limited to 'kernel/sched/fair.c')
-rw-r--r--kernel/sched/fair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index cd7fd7e2b579..46b7bd41573f 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -5718,7 +5718,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);