]> Git Repo - linux.git/blobdiff - arch/s390/include/asm/pgtable.h
Merge branch 'next' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[linux.git] / arch / s390 / include / asm / pgtable.h
index 9f215b40109e1c4d9df5bb0aa6da36e5be3213ba..9b60a36c348d5422dc325463bcb26efeee64161d 100644 (file)
@@ -1442,6 +1442,17 @@ static inline pmd_t pmd_mkwrite(pmd_t pmd)
 }
 #endif /* CONFIG_TRANSPARENT_HUGEPAGE || CONFIG_HUGETLB_PAGE */
 
+static inline void pmdp_flush_lazy(struct mm_struct *mm,
+                                  unsigned long address, pmd_t *pmdp)
+{
+       int active = (mm == current->active_mm) ? 1 : 0;
+
+       if ((atomic_read(&mm->context.attach_count) & 0xffff) > active)
+               __pmd_idte(address, pmdp);
+       else
+               mm->context.flush_mm = 1;
+}
+
 #ifdef CONFIG_TRANSPARENT_HUGEPAGE
 
 #define __HAVE_ARCH_PGTABLE_DEPOSIT
This page took 0.03517 seconds and 4 git commands to generate.