diff options
| author | Peter Zijlstra <[email protected]> | 2020-12-10 16:14:08 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2020-12-15 10:27:53 +0000 |
| commit | ae7927023243dcc7389b2d59b16c09cbbeaecc36 (patch) | |
| tree | 64bdf7a8cddcc7a2c2631a107dee1b5bbc4e7405 /net/switchdev/switchdev.c | |
| parent | sched/fair: Trivial correction of the newidle_balance() comment (diff) | |
| download | kernel-ae7927023243dcc7389b2d59b16c09cbbeaecc36.tar.gz kernel-ae7927023243dcc7389b2d59b16c09cbbeaecc36.zip | |
sched: Optimize finish_lock_switch()
The kernel test robot measured a -1.6% performance regression on
will-it-scale/sched_yield due to commit:
2558aacff858 ("sched/hotplug: Ensure only per-cpu kthreads run during hotplug")
Even though we were careful to replace a single load with another
single load from the same cacheline.
Restore finish_lock_switch() to the exact state before the offending
patch and solve the problem differently.
Fixes: 2558aacff858 ("sched/hotplug: Ensure only per-cpu kthreads run during hotplug")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
