diff options
| author | Sebastian Andrzej Siewior <[email protected]> | 2024-10-02 16:16:33 +0000 |
|---|---|---|
| committer | Russell King (Oracle) <[email protected]> | 2024-11-12 16:41:47 +0000 |
| commit | b54cdbad4a39bb3abc85ac151f4882b3d92c5d79 (patch) | |
| tree | 694982cbbb63ba97da68b090dbc86f72a6399404 /drivers/platform/x86/intel/pmt/class.c | |
| parent | ARM: 9423/1: vfp: Provide vfp_state_hold() for VFP locking. (diff) | |
| download | kernel-b54cdbad4a39bb3abc85ac151f4882b3d92c5d79.tar.gz kernel-b54cdbad4a39bb3abc85ac151f4882b3d92c5d79.zip | |
ARM: 9424/1: vfp: Use vfp_state_hold() in vfp_sync_hwstate().
vfp_sync_hwstate() uses preempt_disable() followed by local_bh_disable()
to ensure that it won't get interrupted while checking the VFP state.
This harms PREEMPT_RT because softirq handling can get preempted and
local_bh_disable() synchronizes the related section with a sleeping lock
which does not work with disabled preemption.
Use the vfp_state_hold() to synchronize the access.
Reviewed-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Russell King (Oracle) <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions
