diff options
| author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-10-24 04:52:29 -0400 |
|---|---|---|
| committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-10-27 08:27:30 -0400 |
| commit | fcbe08d66f57c368e77ca729dd01e6b539ffb3ff (patch) | |
| tree | 202c07aac6f67b5b34372da6f80cf9baa773e307 /include/asm-generic | |
| parent | 6972cae523de728ad5e8dae01da4a631d98b874c (diff) | |
s390/mm: pmdp_get_and_clear_full optimization
Analog to ptep_get_and_clear_full define a variant of the
pmpd_get_and_clear primitive which gets the full hint from the
mmu_gather struct. This allows s390 to avoid a costly instruction
when destroying an address space.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-generic')
| -rw-r--r-- | include/asm-generic/pgtable.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h index 752e30d63904..177d5973b132 100644 --- a/include/asm-generic/pgtable.h +++ b/include/asm-generic/pgtable.h | |||
| @@ -103,6 +103,17 @@ static inline pmd_t pmdp_get_and_clear(struct mm_struct *mm, | |||
| 103 | #endif /* CONFIG_TRANSPARENT_HUGEPAGE */ | 103 | #endif /* CONFIG_TRANSPARENT_HUGEPAGE */ |
| 104 | #endif | 104 | #endif |
| 105 | 105 | ||
| 106 | #ifndef __HAVE_ARCH_PMDP_GET_AND_CLEAR_FULL | ||
| 107 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE | ||
| 108 | static inline pmd_t pmdp_get_and_clear_full(struct mm_struct *mm, | ||
| 109 | unsigned long address, pmd_t *pmdp, | ||
| 110 | int full) | ||
| 111 | { | ||
| 112 | return pmdp_get_and_clear(mm, address, pmdp); | ||
| 113 | } | ||
| 114 | #endif /* CONFIG_TRANSPARENT_HUGEPAGE */ | ||
| 115 | #endif | ||
| 116 | |||
| 106 | #ifndef __HAVE_ARCH_PTEP_GET_AND_CLEAR_FULL | 117 | #ifndef __HAVE_ARCH_PTEP_GET_AND_CLEAR_FULL |
| 107 | static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm, | 118 | static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm, |
| 108 | unsigned long address, pte_t *ptep, | 119 | unsigned long address, pte_t *ptep, |
