From: David Daney Date: Fri, 14 May 2010 19:44:18 +0000 (-0700) Subject: MIPS: Use GCC __builtin_prefetch() to implement prefetch(). X-Git-Tag: v2.6.35-rc1~443^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0453fb3c528c5eb3483441a466b24a4cb409eec5;p=pandora-kernel.git MIPS: Use GCC __builtin_prefetch() to implement prefetch(). GCC's __builtin_prefetch() was introduced a long time ago, all supported GCC versions have it. Lets do what the big boys up in linux/prefetch.h do, except we use '1' as the third parameter to provoke 'PREF 0,...' and 'PREF 1,...' instead of other prefetch hints. This allows for better code generation. In theory the existing embedded asm could be optimized, but the compiler has these builtins, so there is really no point. Signed-off-by: David Daney To: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/1235/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed