HomeFreeBSD

Refactor CONFIG_SPE check on Linux/powerpc

Description

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

Details

Provenance
WHR <msl0000023508@gmail.com>Authored on Mar 14 2023, 1:25 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 15 2023, 5:30 PM
Parents
rGf31b0d4e88f2: Fix missing semicolons in commit 1f196e3
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGd74f123045bf: Refactor CONFIG_SPE check on Linux/powerpc (authored by WHR <msl0000023508@gmail.com>).Mar 15 2023, 5:30 PM