projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8458bf9
)
x86/mm: Create native_make_p4d() for PGTABLE_LEVELS <= 4
author
Tom Lendacky
<
[email protected]
>
Mon, 17 Jul 2017 21:10:31 +0000
(16:10 -0500)
committer
Ingo Molnar
<
[email protected]
>
Tue, 18 Jul 2017 09:38:05 +0000
(11:38 +0200)
Currently, native_make_p4d() is only defined when CONFIG_PGTABLE_LEVELS
is greater than 4. Create a macro that will allow for defining and using
native_make_p4d() when CONFIG_PGTABLES_LEVELS is not greater than 4.
Signed-off-by: Tom Lendacky <
[email protected]
>
Reviewed-by: Thomas Gleixner <
[email protected]
>
Cc: Alexander Potapenko <
[email protected]
>
Cc: Andrey Ryabinin <
[email protected]
>
Cc: Andy Lutomirski <
[email protected]
>
Cc: Arnd Bergmann <
[email protected]
>
Cc: Borislav Petkov <
[email protected]
>
Cc: Brijesh Singh <
[email protected]
>
Cc: Dave Young <
[email protected]
>
Cc: Dmitry Vyukov <
[email protected]
>
Cc: Jonathan Corbet <
[email protected]
>
Cc: Konrad Rzeszutek Wilk <
[email protected]
>
Cc: Larry Woodman <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Matt Fleming <
[email protected]
>
Cc: Michael S. Tsirkin <
[email protected]
>
Cc: Paolo Bonzini <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Radim Krčmář <
[email protected]
>
Cc: Rik van Riel <
[email protected]
>
Cc: Toshimitsu Kani <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/b645e14f9e73731023694494860ceab73feff777.1500319216.git.thomas.lendacky@amd.com
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/include/asm/pgtable_types.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/pgtable_types.h
b/arch/x86/include/asm/pgtable_types.h
index 830992fc5a069937e6cc6f4c83d59e3afd599df4..6c55973ebab83bf3becafce989a5a8b465dbcfb6 100644
(file)
--- a/
arch/x86/include/asm/pgtable_types.h
+++ b/
arch/x86/include/asm/pgtable_types.h
@@
-309,6
+309,11
@@
static inline p4dval_t native_p4d_val(p4d_t p4d)
#else
#include <asm-generic/pgtable-nop4d.h>
+static inline p4d_t native_make_p4d(pudval_t val)
+{
+ return (p4d_t) { .pgd = native_make_pgd((pgdval_t)val) };
+}
+
static inline p4dval_t native_p4d_val(p4d_t p4d)
{
return native_pgd_val(p4d.pgd);