OSDN Git Service

sched: Remove synchronize rcu/sched calls from _cpu_down
authorKaushal Kumar <kaushalk@codeaurora.org>
Thu, 15 May 2014 13:49:04 +0000 (19:19 +0530)
committerRunmin Wang <runminw@codeaurora.org>
Tue, 2 Aug 2016 17:19:16 +0000 (10:19 -0700)
commit36131fdc87c847b498d82808dd5ac88443dc8cf5
tree43680f410293525debe2b3db4e0a0fbd94bc9944
parent2566204c8d1d65bac5df79262a6a22c40a5b0b0f
sched: Remove synchronize rcu/sched calls from _cpu_down

There is no need for sync_sched() in _cpu_down as stop_machine()
provides that barrier implicitly. Removing it also helps improve
hot-unplug latency.

The sync_sched/rcu were earlier removed for the same reason by the
commit 9ee349ad6d326df3633 ("sched: Fix set_cpu_active() in cpu_down()"),
but recently got added as part of commit <6acce3ef84520537> ("sched:
Remove get_online_cpus() usage.").

CRs-Fixed: 1048941
Change-Id: I97763004454d082d3cc2d9d9dbef7da923608600
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
kernel/cpu.c