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)
commitf68aa5b445fd00b67588ade611a4efb1a34dadb4
treefcc4c8f74e96922d439d37ba045867f8e4952d8a
parentcfa54a0fcfc1017c6f122b6f21aaba36daa07f71
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