]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7755/1: handle user space mapped pages in flush_kernel_dcache_page
authorSimon Baatz <gmbnomis@gmail.com>
Mon, 10 Jun 2013 20:10:12 +0000 (21:10 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 Jun 2013 09:30:52 +0000 (10:30 +0100)
commit99e85e9bbccad09fae25c56dd18b3ffe644404b8
tree50179be222c15d5e06f77928331d63843f6fc738
parent2111edf9c105809a07b8cb9dba131e42dcaa0f7e
ARM: 7755/1: handle user space mapped pages in flush_kernel_dcache_page

Commit faf7c77 made flush_kernel_dcache_page a no-op assuming that
the pages it needs to handle are kernel mapped only.  However, for
example when doing direct I/O, pages with user space mappings may
occur.

Thus, continue to do lazy flushing if there are no user space
mappings.  Otherwise, flush the kernel cache lines directly.

Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: <stable@vger.kernel.org> # 3.2+
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/cacheflush.h
arch/arm/mm/flush.c