diff options
author | Peter Zijlstra <peterz@infradead.org> | 2017-05-08 16:51:41 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-09-29 19:35:14 +0200 |
commit | 2a2f5d4e44ed160a5ed822c94e04f918f9fbb487 (patch) | |
tree | 044c01816758a1501c3565f6ebb53ef2c34c3ea9 /.gitignore | |
parent | sched/fair: Use reweight_entity() for set_user_nice() (diff) | |
download | linux-2a2f5d4e44ed160a5ed822c94e04f918f9fbb487.tar.xz linux-2a2f5d4e44ed160a5ed822c94e04f918f9fbb487.zip |
sched/fair: Rewrite cfs_rq->removed_*avg
Since on wakeup migration we don't hold the rq->lock for the old CPU
we cannot update its state. Instead we add the removed 'load' to an
atomic variable and have the next update on that CPU collect and
process it.
Currently we have 2 atomic variables; which already have the issue
that they can be read out-of-sync. Also, two atomic ops on a single
cacheline is already more expensive than an uncontended lock.
Since we want to add more, convert the thing over to an explicit
cacheline with a lock in.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions