[PATCH] powerpc: Cleanup, consolidating icache dirtying logic
commit09f5dc44aeff9f792a807a7dca64c1791d98d8c8
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 6 Feb 2006 02:24:53 +0000 (6 13:24 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 7 Feb 2006 10:51:53 +0000 (7 21:51 +1100)
tree9cc57118c3ce54087ecfff0870432313fc733edf
parent95eff20feb679a2223a6da1e7f272fe9aa99591e
[PATCH] powerpc: Cleanup, consolidating icache dirtying logic

The code to mark a page as icache dirty (so that it will later be
icache-dcache flushed when we try to execute from it) is duplicated in
three places: flush_dcache_page() does this marking and nothing else,
but clear_user_page() and copy_user_page() duplicate it, since those
functions make the page icache dirty themselves.

This patch makes those other functions call flush_dcache_page()
instead, so the logic's all in one place.  This will make life less
confusing if we ever need to tweak the details of the the lazy icache
flush mechanism.

 arch/powerpc/mm/mem.c |   14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/mem.c