]> git.baikalelectronics.ru Git - kernel.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>
Sun, 24 Feb 2013 03:12:53 +0000 (19:12 -0800)
commit2e1418dcbb87bf5615d75e7d9ecd490ff1a173ea
tree9aca0e26cfa96e18e1d353777349ee30cc25718d
parent9c4a160bc46165c735fd55f3bcf6f97f3445240e
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