mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
All architectures have been providing an 'ifunc.h' header with DEFINE_IFUNC() et alter working both in kernel and userland since commitcf41d11133("riscv: implement kernel ifunc resolution"), and separate <i386/ifunc.h> and <amd64/ifunc.h> headers were introduced in commit2b1db07bec("x86: add machine/ifunc.h"), so stop including <x86/ifunc.h> directly and use the common <machine/ifunc.h> idiom. While here, re-order includes in the blocks featuring <x86/ifunc.h>, which requires fixing <x86/apicvar.h> so that it can be included before <machine/intr_machdep.h>. Reviewed by: kib MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60194