HomeFreeBSD

Linux 5.16 compat: asm/fpu/xcr.h is new location for xgetbv/xsetbv

Description

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

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Nov 16 2021, 4:23 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 29 2021, 6:49 PM
Parents
rGc0fb44c50609: Linux 5.16: wait_on_page_bit() no longer available to modules
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG75b309a9384c: Linux 5.16 compat: asm/fpu/xcr.h is new location for xgetbv/xsetbv (authored by Coleman Kane <ckane@colemankane.org>).Nov 29 2021, 6:49 PM