| To: | David Daney <ddaney@caviumnetworks.com> |
|---|---|
| Subject: | Re: [PATCH] MIPS: Use GCC __builtin_prefetch() to implement prefetch(). |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Fri, 21 May 2010 19:05:59 +0100 |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <1273866258-2223-1-git-send-email-ddaney@caviumnetworks.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1273866258-2223-1-git-send-email-ddaney@caviumnetworks.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.20 (2009-08-17) |
On Fri, May 14, 2010 at 12:44:18PM -0700, David Daney wrote: > 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. Applied, thanks. Ralf |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: bkl: Pushdowns for sound/oss ?, Mark Brown |
|---|---|
| Next by Date: | [PATCH] MIPS:POWERTV: use O(1) algorthm for phys_to_dma/dma_to_phys, David VomLehn |
| Previous by Thread: | [PATCH] MIPS: Use GCC __builtin_prefetch() to implement prefetch()., David Daney |
| Next by Thread: | [PATCH v4 0/9] MIPS performance event support v4, Deng-Cheng Zhu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |