diff options
author | 2016-09-14 10:01:50 +0800 | |
---|---|---|
committer | 2016-09-22 14:53:45 +0200 | |
commit | bf89a304722f6904009499a31dc68ab9a5c9742e (patch) | |
tree | 2177d0136fa62ca04091b6f5823ad32b055bbf7c /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | sched/core: Remove unnecessary initialization in sched_init() (diff) | |
download | linux-dev-bf89a304722f6904009499a31dc68ab9a5c9742e.tar.xz linux-dev-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 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions