diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-05-26 19:11:02 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-05-28 11:54:15 +0300 |
commit | 4b44a21dd640b692d4e9b12d3e37c24825f90baa (patch) | |
tree | 5dea8495f643a9152ce6ada83d8f5f6466f1d898 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b2a02fc43a1f40ef4eb2fb2b06357382608d4d84 (diff) | |
download | linux-4b44a21dd640b692d4e9b12d3e37c24825f90baa.tar.xz |
irq_work, smp: Allow irq_work on call_single_queue
Currently irq_work_queue_on() will issue an unconditional
arch_send_call_function_single_ipi() and has the handler do
irq_work_run().
This is unfortunate in that it makes the IPI handler look at a second
cacheline and it misses the opportunity to avoid the IPI. Instead note
that struct irq_work and struct __call_single_data are very similar in
layout, so use a few bits in the flags word to encode a type and stick
the irq_work on the call_single_queue list.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200526161908.011635912@infradead.org
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions