Re: [ovs-dev] [PATCH 06/10] lib: Add prefetch support (for GCC)

2014-04-29 Thread Jarno Rajahalme
On Apr 24, 2014, at 5:55 PM, Ethan Jackson wrote: > I think there should be a comment explaining when to use prefetch vs > prefetch_write. I certainly don't know off the top of my head. > I wrote this based on GCC documentation: /* OVS_PREFETCH() can be used to instruct the CPU to fetch the

Re: [ovs-dev] [PATCH 06/10] lib: Add prefetch support (for GCC)

2014-04-24 Thread Ethan Jackson
I think there should be a comment explaining when to use prefetch vs prefetch_write. I certainly don't know off the top of my head. Acked-by: Ethan Jackson On Fri, Apr 18, 2014 at 12:41 PM, Jarno Rajahalme wrote: > Define OVS_PREFETCH() and OVS_PREFETCH_WRITE() using builtin prefetch > for GC

[ovs-dev] [PATCH 06/10] lib: Add prefetch support (for GCC)

2014-04-18 Thread Jarno Rajahalme
Define OVS_PREFETCH() and OVS_PREFETCH_WRITE() using builtin prefetch for GCC, and ovs_prefetch_range() for prefetching a range of addresses. Signed-off-by: Jarno Rajahalme --- lib/compiler.h |8 lib/util.h | 14 ++ 2 files changed, 22 insertions(+) diff --git a/l