Re: RFC can we use __builtin_prefetch() directly in our kernel sources ?

2013-12-23 Thread John Baldwin
On Monday, December 16, 2013 11:50:14 am Luigi Rizzo wrote: > Is it ok in kernel code to use __builtin_prefetch() and assume that > all supported compilers will do the right thing for all architectures ? > > I am asking is because I need to use prefetch() in a small number > of places in my netmap

RFC can we use __builtin_prefetch() directly in our kernel sources ?

2013-12-16 Thread Luigi Rizzo
Is it ok in kernel code to use __builtin_prefetch() and assume that all supported compilers will do the right thing for all architectures ? I am asking is because I need to use prefetch() in a small number of places in my netmap code, and nothing in our kernel sources uses __builtin_prefetch() dir