Commit b50854ec authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Borislav Petkov

x86/pkru: Remove useless include

PKRU code does not need anything from FPU headers. Include cpufeature.h
instead and fixup the resulting fallout in perf.

This is a preparation for FPU changes in order to prevent recursive include
hell.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211015011538.551522694@linutronix.de
parent d2d92648
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <linux/perf_event.h> #include <linux/perf_event.h>
#include <asm/fpu/xstate.h>
#include <asm/intel_ds.h> #include <asm/intel_ds.h>
#include <asm/cpu.h> #include <asm/cpu.h>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#ifndef _ASM_X86_PKRU_H #ifndef _ASM_X86_PKRU_H
#define _ASM_X86_PKRU_H #define _ASM_X86_PKRU_H
#include <asm/fpu/xstate.h> #include <asm/cpufeature.h>
#define PKRU_AD_BIT 0x1 #define PKRU_AD_BIT 0x1
#define PKRU_WD_BIT 0x2 #define PKRU_WD_BIT 0x2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment