|
@@ -40,7 +40,6 @@
|
|
|
|
|
|
#include <asm/alternative.h>
|
|
|
#include <asm/cpufeature.h>
|
|
|
-#include <asm/fpsimd.h>
|
|
|
#include <asm/hw_breakpoint.h>
|
|
|
#include <asm/lse.h>
|
|
|
#include <asm/pgtable-hwdef.h>
|
|
@@ -247,6 +246,17 @@ void cpu_enable_pan(const struct arm64_cpu_capabilities *__unused);
|
|
|
void cpu_enable_cache_maint_trap(const struct arm64_cpu_capabilities *__unused);
|
|
|
void cpu_clear_disr(const struct arm64_cpu_capabilities *__unused);
|
|
|
|
|
|
+/*
|
|
|
+ * Not at the top of the file due to a direct #include cycle between
|
|
|
+ * <asm/fpsimd.h> and <asm/processor.h>. Deferring this #include
|
|
|
+ * ensures that contents of processor.h are visible to fpsimd.h even if
|
|
|
+ * processor.h is included first.
|
|
|
+ *
|
|
|
+ * These prctl helpers are the only things in this file that require
|
|
|
+ * fpsimd.h. The core code expects them to be in this header.
|
|
|
+ */
|
|
|
+#include <asm/fpsimd.h>
|
|
|
+
|
|
|
/* Userspace interface for PR_SVE_{SET,GET}_VL prctl()s: */
|
|
|
#define SVE_SET_VL(arg) sve_set_current_vl(arg)
|
|
|
#define SVE_GET_VL() sve_get_current_vl()
|