diff options
author | 2022-05-05 18:32:06 +0200 | |
---|---|---|
committer | 2022-05-16 19:15:46 +0100 | |
commit | 696207d4258b2ab66dbd1655a7cfb3e978889085 (patch) | |
tree | 26fdce18b68129c68f624ee622f0f78b60216faf /scripts/gdb/linux/utils.py | |
parent | arm64/sve: Delay freeing memory in fpsimd_flush_thread() (diff) | |
download | wireguard-linux-696207d4258b2ab66dbd1655a7cfb3e978889085.tar.xz wireguard-linux-696207d4258b2ab66dbd1655a7cfb3e978889085.zip |
arm64/sve: Make kernel FPU protection RT friendly
Non RT kernels need to protect FPU against preemption and bottom half
processing. This is achieved by disabling bottom halves via
local_bh_disable() which implictly disables preemption.
On RT kernels this protection mechanism is not sufficient because
local_bh_disable() does not disable preemption. It serializes bottom half
related processing via a CPU local lock.
As bottom halves are running always in thread context on RT kernels
disabling preemption is the proper choice as it implicitly prevents bottom
half processing.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220505163207.85751-3-bigeasy@linutronix.de
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions