Ard Biesheuvel d13c613f13 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>
2021-02-03 20:48:02 +00:00
..
2020-12-16 12:33:35 -08:00
2020-12-16 12:33:35 -08:00
2020-12-17 13:22:17 -08:00
2020-12-16 12:33:35 -08:00
2020-12-16 12:33:35 -08:00
2020-12-22 14:02:39 -08:00
2020-12-21 10:35:11 -08:00
2020-12-17 13:22:17 -08:00
2020-12-16 12:33:35 -08:00
2020-12-17 13:41:27 -08:00
2020-12-24 14:02:00 -08:00
2020-12-24 14:05:05 -08:00