define prefetch as a noop on !x86

This commit is contained in:
Luigi Rizzo 2012-07-26 21:37:58 +00:00
parent 0fafb093b9
commit 29ecb031b6

View File

@ -220,7 +220,11 @@ struct nm_bridge nm_bridges[NM_BRIDGES];
#ifndef linux
static inline void prefetch (const void *x)
{
#if defined(__i386__) || defined(__amd64__)
__asm volatile("prefetcht0 %0" :: "m" (*(const unsigned long *)x));
#else
(void)x;
#endif
}
#endif /* !linux */