Refactor CONFIG_SPE check on Linux/powerpc
commitd74f123045bf3657f65c477b0bd874cb0215b439
authorWHR <msl0000023508@gmail.com>
Tue, 14 Mar 2023 13:25:25 +0000 (14 21:25 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 15 Mar 2023 17:30:42 +0000 (15 10:30 -0700)
tree4f918b05180effe78b42992eb3423e7c08945734
parentf31b0d4e88f2609a39ad175b10505a11945d472a
Refactor CONFIG_SPE check on Linux/powerpc

Commit 5401472 adds a check to call enable_kernel_spe and
disable_kernel_spe only if CONFIG_SPE is defined. Refactor this check
in a way similar to what CONFIG_ALTIVEC and CONFIG_VSX are checked, in
order to remove redundant kfpu_begin() and kfpu_end() implementations.

Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: WHR <msl0000023508@gmail.com>
Closes #14623
include/os/linux/kernel/linux/simd_powerpc.h