]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 5.16 compat: asm/fpu/xcr.h is new location for xgetbv/xsetbv
authorColeman Kane <ckane@colemankane.org>
Tue, 16 Nov 2021 04:23:30 +0000 (23:23 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 29 Nov 2021 18:49:33 +0000 (10:49 -0800)
commit75b309a9384c05a0e8ab8d63aef73a6b69c0a49a
tree8c270a020e7f400fb66fb68bb34680a126a2f049
parentc0fb44c50609c973bb06d0ec24e9e659ce6c9446
Linux 5.16 compat: asm/fpu/xcr.h is new location for xgetbv/xsetbv

Linux 5.16 moved these functions into this new header in commit
1b4fb8545f2b00f2844c4b7619d64d98440a477c. This change adds code to look
for the presence of this header, and include it so that the code using
xgetbv & xsetbv will compile again.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #12800
config/kernel-fpu.m4
include/os/linux/kernel/linux/simd_x86.h