From: Olof Johansson Date: Sat, 16 Apr 2005 22:24:38 +0000 (-0700) Subject: [PATCH] ppc64: no prefetch for NULL pointers X-Git-Tag: v2.6.12-rc3~191 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e63f8f439de010b6227c0c9c6f56e2c44dbe5dae;p=pandora-kernel.git [PATCH] ppc64: no prefetch for NULL pointers For prefetches of NULL (as when walking a short linked list), PPC64 will in some cases take a performance hit. The hardware needs to do the TLB walk, and said walk will always miss, which means (up to) two L2 misses as penalty. This seems to hurt overall performance, so for NULL pointers skip the prefetch alltogether. Signed-off-by: Olof Johansson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed