ARM: 7487/1: mm: avoid setting nG bit for user mappings that aren't present
[pandora-kernel.git] / arch / arm / mm / flush.c
index 1a8d4aa..8fda9f7 100644 (file)
@@ -236,8 +236,6 @@ void __sync_icache_dcache(pte_t pteval)
        struct page *page;
        struct address_space *mapping;
 
-       if (!pte_present_user(pteval))
-               return;
        if (cache_is_vipt_nonaliasing() && !pte_exec(pteval))
                /* only flush non-aliasing VIPT caches for exec mappings */
                return;