]> git.baikalelectronics.ru Git - kernel.git/commit
asm-generic/cacheflush.h: flush icache when copying to user pages
authorMike Frysinger <vapier@gentoo.org>
Wed, 25 May 2011 00:12:53 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 May 2011 15:39:37 +0000 (08:39 -0700)
commit3ecac92347d5d1e2d63030ca42feed59143ca0e4
treefcc4c8f74e96922d439d37ba045867f8e4952d8a
parent9752a44d262b9bef727d4cdcc0235be0451ebf85
asm-generic/cacheflush.h: flush icache when copying to user pages

The copy_to_user_page() function is supposed to flush the icache on the
memory that was written, but the current asm-generic version lacks that
logic.  While normally it isn't a big deal as the asm-generic version of
icache flushing is a stub, it is a deal for ports that want to use the
asm-generic version as a baseline and then overlay its own specific parts
(like icache flushing).

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/cacheflush.h