summaryrefslogtreecommitdiffstats
path: root/crypto/tcrypt.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2020-10-27 11:09:51 +0100
committerThomas Gleixner <tglx@linutronix.de>2020-11-11 14:35:16 +0100
commitcba08c5dc6dc1a906a0b5ddac9a9ac6c9a64f2e8 (patch)
tree7ce4592cb4d33bfdf4d19169be49bddbf153c9d2 /crypto/tcrypt.h
parent5f0c71278d6848b4809f83af90f28196e1505ab1 (diff)
downloadlinux-stable-cba08c5dc6dc1a906a0b5ddac9a9ac6c9a64f2e8.tar.gz
linux-stable-cba08c5dc6dc1a906a0b5ddac9a9ac6c9a64f2e8.tar.bz2
linux-stable-cba08c5dc6dc1a906a0b5ddac9a9ac6c9a64f2e8.zip
x86/fpu: 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 halfs 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 halfs 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: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20201027101349.588965083@linutronix.de
Diffstat (limited to 'crypto/tcrypt.h')
0 files changed, 0 insertions, 0 deletions