diff options
author | Mark Rutland <[email protected]> | 2017-07-20 14:01:01 +0100 |
---|---|---|
committer | Mark Rutland <[email protected]> | 2017-08-08 16:28:25 +0100 |
commit | 096683724cb2eb95fea759a2580996df1039fdd0 (patch) | |
tree | 78e44f1a2d401822f5fd45b721efca323fd5415a /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | ed84b4e9582bdfeffc617589fe17dddfc5fe6672 (diff) |
arm64: unwind: avoid percpu indirection for irq stack
Our IRQ_STACK_PTR() and on_irq_stack() helpers both take a cpu argument,
used to generate a percpu address. In all cases, they are passed
{raw_,}smp_processor_id(), so this parameter is redundant.
Since {raw_,}smp_processor_id() use a percpu variable internally, this
approach means we generate a percpu offset to find the current cpu, then
use this to index an array of percpu offsets, which we then use to find
the current CPU's IRQ stack pointer. Thus, most of the work is
redundant.
Instead, we can consistently use raw_cpu_ptr() to generate the CPU's
irq_stack pointer by simply adding the percpu offset to the irq_stack
address, which is simpler in both respects.
Signed-off-by: Mark Rutland <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: James Morse <[email protected]>
Cc: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions