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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux