[Top] [All Lists]

Re: [PATCH] MIPS: Use GCC __builtin_prefetch() to implement prefetch().

To: David Daney <>
Subject: Re: [PATCH] MIPS: Use GCC __builtin_prefetch() to implement prefetch().
From: Ralf Baechle <>
Date: Fri, 21 May 2010 19:05:59 +0100
In-reply-to: <>
Original-recipient: rfc822;
References: <>
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.


<Prev in Thread] Current Thread [Next in Thread>