aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/alchemy/common/dbdma.c
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2010-05-14 15:44:18 -0400
committerRalf Baechle <ralf@linux-mips.org>2010-05-21 16:31:23 -0400
commit0453fb3c528c5eb3483441a466b24a4cb409eec5 (patch)
tree9f3ede7bb21b5accef294cadcf633d251150e8da /arch/mips/alchemy/common/dbdma.c
parent606c958e2857d29106b8d3b2fc30e22f376c80c5 (diff)
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 <ddaney@caviumnetworks.com> To: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/1235/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/alchemy/common/dbdma.c')
0 files changed, 0 insertions, 0 deletions