• David Gibson's avatar
    [PATCH] powerpc: Cleanup, consolidating icache dirtying logic · 09f5dc44
    David Gibson authored
    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: default avatarDavid Gibson <dwg@au1.ibm.com>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    09f5dc44
mem.c 14.5 KB