aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2021-08-03 17:58:58 +0200
committerIngo Molnar <mingo@kernel.org>2022-03-15 12:57:24 +0100
commitc4dee1501f82cf929313a8880a4ce55e7aec3b9f (patch)
treea0b0929206e7ac7d68a7f820366e766403eb85a7 /arch
parentfc2d1b1ab030962e712e5f6fe15c901bf8a4074d (diff)
downloadtip-c4dee1501f82cf929313a8880a4ce55e7aec3b9f.tar.gz
headers/deps: x86/mm: Optimize <asm/pgtable.h> dependencies, remove <asm/pkru> and <asm/fpu/api.h> inclusion
-------------------------------------------------------------------- | Combined, preprocessed C code size of header, without line markers, | with comments stripped: ------------------------- before: | #include <asm/pgtable.h> | LOC: 9,750 | headers: 268 after: | #include <asm/pgtable.h> | LOC: 8,361 | headers: 234 Fix up dangling dependencies. Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/include/asm/pgtable.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h
index b48a5779c19bec..f8763be951c1fe 100644
--- a/arch/x86/include/asm/pgtable.h
+++ b/arch/x86/include/asm/pgtable.h
@@ -27,8 +27,7 @@
#ifndef __ASSEMBLY__
#include <linux/spinlock.h>
#include <asm/x86_init.h>
-#include <asm/pkru.h>
-#include <asm/fpu/api.h>
+#include <asm/cpufeature.h>
#include <asm-generic/pgtable_uffd.h>
#include <linux/page_table_check.h>