aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/sparsemem.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/sparsemem.h')
-rw-r--r--arch/x86/include/asm/sparsemem.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/x86/include/asm/sparsemem.h b/arch/x86/include/asm/sparsemem.h
index 4fc1e9d3c43e..4617a2bf123c 100644
--- a/arch/x86/include/asm/sparsemem.h
+++ b/arch/x86/include/asm/sparsemem.h
@@ -27,13 +27,8 @@
27# endif 27# endif
28#else /* CONFIG_X86_32 */ 28#else /* CONFIG_X86_32 */
29# define SECTION_SIZE_BITS 27 /* matt - 128 is convenient right now */ 29# define SECTION_SIZE_BITS 27 /* matt - 128 is convenient right now */
30# ifdef CONFIG_X86_5LEVEL 30# define MAX_PHYSADDR_BITS (pgtable_l5_enabled ? 52 : 44)
31# define MAX_PHYSADDR_BITS 52 31# define MAX_PHYSMEM_BITS (pgtable_l5_enabled ? 52 : 46)
32# define MAX_PHYSMEM_BITS 52
33# else
34# define MAX_PHYSADDR_BITS 44
35# define MAX_PHYSMEM_BITS 46
36# endif
37#endif 32#endif
38 33
39#endif /* CONFIG_SPARSEMEM */ 34#endif /* CONFIG_SPARSEMEM */