[PATCH] Optimize D-cache alias handling on fork
authorRalf Baechle <ralf@linux-mips.org>
Tue, 12 Dec 2006 17:14:57 +0000 (17:14 +0000)
committerLinus Torvalds <torvalds@woody.osdl.org>
Wed, 13 Dec 2006 17:27:08 +0000 (09:27 -0800)
commitec8c0446b6e2b67b5c8813eb517f4bf00efa99a9
treee7c12d7c486c958a5e38888b41cfcd6a558f1aff
parentbcd022801ee514e28c32837f0b3ce18c775f1a7b
[PATCH] Optimize D-cache alias handling on fork

Virtually index, physically tagged cache architectures can get away
without cache flushing when forking.  This patch adds a new cache
flushing function flush_cache_dup_mm(struct mm_struct *) which for the
moment I've implemented to do the same thing on all architectures
except on MIPS where it's a no-op.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
27 files changed:
Documentation/cachetlb.txt
include/asm-alpha/cacheflush.h
include/asm-arm/cacheflush.h
include/asm-arm26/cacheflush.h
include/asm-avr32/cacheflush.h
include/asm-cris/cacheflush.h
include/asm-frv/cacheflush.h
include/asm-h8300/cacheflush.h
include/asm-i386/cacheflush.h
include/asm-ia64/cacheflush.h
include/asm-m32r/cacheflush.h
include/asm-m68k/cacheflush.h
include/asm-m68knommu/cacheflush.h
include/asm-mips/cacheflush.h
include/asm-parisc/cacheflush.h
include/asm-powerpc/cacheflush.h
include/asm-s390/cacheflush.h
include/asm-sh/cpu-sh2/cacheflush.h
include/asm-sh/cpu-sh3/cacheflush.h
include/asm-sh/cpu-sh4/cacheflush.h
include/asm-sh64/cacheflush.h
include/asm-sparc/cacheflush.h
include/asm-sparc64/cacheflush.h
include/asm-v850/cacheflush.h
include/asm-x86_64/cacheflush.h
include/asm-xtensa/cacheflush.h
kernel/fork.c