diff options
Diffstat (limited to 'arch/s390/include/asm/pgtable.h')
-rw-r--r-- | arch/s390/include/asm/pgtable.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h index 411d435e7a7d..063732414dfb 100644 --- a/arch/s390/include/asm/pgtable.h +++ b/arch/s390/include/asm/pgtable.h | |||
@@ -493,6 +493,24 @@ static inline int is_module_addr(void *addr) | |||
493 | _REGION_ENTRY_PROTECT | \ | 493 | _REGION_ENTRY_PROTECT | \ |
494 | _REGION_ENTRY_NOEXEC) | 494 | _REGION_ENTRY_NOEXEC) |
495 | 495 | ||
496 | static inline bool mm_p4d_folded(struct mm_struct *mm) | ||
497 | { | ||
498 | return mm->context.asce_limit <= _REGION1_SIZE; | ||
499 | } | ||
500 | #define mm_p4d_folded(mm) mm_p4d_folded(mm) | ||
501 | |||
502 | static inline bool mm_pud_folded(struct mm_struct *mm) | ||
503 | { | ||
504 | return mm->context.asce_limit <= _REGION2_SIZE; | ||
505 | } | ||
506 | #define mm_pud_folded(mm) mm_pud_folded(mm) | ||
507 | |||
508 | static inline bool mm_pmd_folded(struct mm_struct *mm) | ||
509 | { | ||
510 | return mm->context.asce_limit <= _REGION3_SIZE; | ||
511 | } | ||
512 | #define mm_pmd_folded(mm) mm_pmd_folded(mm) | ||
513 | |||
496 | static inline int mm_has_pgste(struct mm_struct *mm) | 514 | static inline int mm_has_pgste(struct mm_struct *mm) |
497 | { | 515 | { |
498 | #ifdef CONFIG_PGSTE | 516 | #ifdef CONFIG_PGSTE |