diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2021-02-03 12:36:18 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-02-03 20:48:02 +0000 |
commit | d13c613f136c9090f3863c49b2306d57ab59feba (patch) | |
tree | 1460b7bd70176eefcf74869c55d31e15908e4535 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 5c8fe583cce542aa0b84adc939ce85293de36e5e (diff) |
arm64: assembler: add cond_yield macro
Add a macro cond_yield that branches to a specified label when called if
the TIF_NEED_RESCHED flag is set and decreasing the preempt count would
make the task preemptible again, resulting in a schedule to occur. This
can be used by kernel mode SIMD code that keeps a lot of state in SIMD
registers, which would make chunking the input in order to perform the
cond_resched() check from C code disproportionately costly.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20210203113626.220151-2-ardb@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions