Title: [7902] trunk/mm/nommu.c: nommu: disable icache flushing of shared text regions that are already mapped
- Revision
- 7902
- Author
- vapier
- Date
- 2009-12-01 17:56:59 -0500 (Tue, 01 Dec 2009)
Log Message
nommu: disable icache flushing of shared text regions that are already mapped
Modified Paths
Diff
Modified: trunk/mm/nommu.c (7901 => 7902)
--- trunk/mm/nommu.c 2009-12-01 22:14:57 UTC (rev 7901)
+++ trunk/mm/nommu.c 2009-12-01 22:56:59 UTC (rev 7902)
@@ -1356,6 +1356,7 @@
kmem_cache_free(vm_region_jar, region);
region = pregion;
result = start;
+ len = 0;
goto share;
}
@@ -1414,7 +1415,7 @@
up_write(&nommu_region_sem);
- if (prot & PROT_EXEC)
+ if (prot & PROT_EXEC && len)
flush_icache_range(result, result + len);
kleave(" = %lx", result);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits