aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/pageattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/pageattr.c')
-rw-r--r--arch/x86/mm/pageattr.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c
index 9c4294986af..9015e5e412b 100644
--- a/arch/x86/mm/pageattr.c
+++ b/arch/x86/mm/pageattr.c
@@ -824,13 +824,6 @@ static int change_page_attr_set_clr(unsigned long *addr, int numpages,
824 824
825 vm_unmap_aliases(); 825 vm_unmap_aliases();
826 826
827 /*
828 * If we're called with lazy mmu updates enabled, the
829 * in-memory pte state may be stale. Flush pending updates to
830 * bring them up to date.
831 */
832 arch_flush_lazy_mmu_mode();
833
834 cpa.vaddr = addr; 827 cpa.vaddr = addr;
835 cpa.numpages = numpages; 828 cpa.numpages = numpages;
836 cpa.mask_set = mask_set; 829 cpa.mask_set = mask_set;
@@ -873,13 +866,6 @@ static int change_page_attr_set_clr(unsigned long *addr, int numpages,
873 } else 866 } else
874 cpa_flush_all(cache); 867 cpa_flush_all(cache);
875 868
876 /*
877 * If we've been called with lazy mmu updates enabled, then
878 * make sure that everything gets flushed out before we
879 * return.
880 */
881 arch_flush_lazy_mmu_mode();
882
883out: 869out:
884 return ret; 870 return ret;
885} 871}