diff options
author | Cheng Chao <cs.os.kernel@gmail.com> | 2016-09-14 10:01:50 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-09-22 14:53:45 +0200 |
commit | bf89a304722f6904009499a31dc68ab9a5c9742e (patch) | |
tree | 2177d0136fa62ca04091b6f5823ad32b055bbf7c /Documentation/io_ordering.txt | |
parent | 0b8473570ce1af3e80da05b59f9321f30253de4d (diff) | |
download | linux-bf89a304722f6904009499a31dc68ab9a5c9742e.tar.gz linux-bf89a304722f6904009499a31dc68ab9a5c9742e.tar.bz2 linux-bf89a304722f6904009499a31dc68ab9a5c9742e.zip |
stop_machine: Avoid a sleep and wakeup in stop_one_cpu()
In case @cpu == smp_proccessor_id(), we can avoid a sleep+wakeup
cycle by doing a preemption.
Callers such as sched_exec() can benefit from this change.
Signed-off-by: Cheng Chao <cs.os.kernel@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: akpm@linux-foundation.org
Cc: chris@chris-wilson.co.uk
Cc: tj@kernel.org
Link: http://lkml.kernel.org/r/1473818510-6779-1-git-send-email-cs.os.kernel@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'Documentation/io_ordering.txt')
0 files changed, 0 insertions, 0 deletions