aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/blkptr.c
diff options
context:
space:
mode:
authorAttila Fülöp <[email protected]>2023-03-14 17:45:28 +0100
committerGitHub <[email protected]>2023-03-14 09:45:28 -0700
commit78289b84589e632d87504df6a9c63b5ac694d2f9 (patch)
tree92c27ba84107a5fc63c83be70dfe11e6ec4e278b /module/zfs/blkptr.c
parentb15ab50c4d61729ae831ea76968b9fa4867d61cf (diff)
zcommon: Refactor FPU state handling in fletcher4
Currently calls to kfpu_begin() and kfpu_end() are split between the init() and fini() functions of the particular SIMD implementation. This was done in #14247 as an optimization measure for the ABD adapter. Unfortunately the split complicates FPU handling on platforms that use a local FPU state buffer, like Windows and macOS. To ease porting, we introduce a boolean struct member in fletcher_4_ops_t, indicating use of the FPU, and move the FPU state handling from the SIMD implementations to the call sites. Reviewed-by: Tino Reichardt <[email protected]> Reviewed-by: Richard Yao <[email protected]> Reviewed-by: Jorgen Lundman <[email protected]> Signed-off-by: Attila Fülöp <[email protected]> Closes #14600
Diffstat (limited to 'module/zfs/blkptr.c')
0 files changed, 0 insertions, 0 deletions