]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xtensa: avoid mmap cache aliasing
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 22 Dec 2012 02:35:04 +0000 (06:35 +0400)
committerChris Zankel <chris@zankel.net>
Mon, 14 Jan 2013 15:38:51 +0000 (07:38 -0800)
commit0ed93fe192dc8c1ecdb93f178e4ee868a5df2803
tree09f9c791426bdce48721d3e609e7a2c6eec51f30
parent11a628293a74c7f6737fa255ed17dc6963261b35
xtensa: avoid mmap cache aliasing

Provide arch_get_unmapped_area function aligning shared memory mapping
addresses to the biggest of the page size or the cache way size. That
guarantees that corresponding virtual addresses of shared mappings are
cached by the same cache sets.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/include/asm/pgtable.h
arch/xtensa/kernel/syscall.c