Does anyone know any reason what this is only set on 32 bit x86 platforms and 
not on x86_64 platforms?

#ifdef CONFIG_X86_32
# define BASE_PREFETCH          ASM_NOP4
# define ARCH_HAS_PREFETCH                           <--------------------
#else
# define BASE_PREFETCH          "prefetcht0 (%1)"
#endif

I wanted to get rid of some explicit prefetches in a driver I maintain and use 
prefetch_range(void *, size_t) but it only does something when 
ARCH_HAS_PREFETCH is defined.

The asm/processor.h uses the alternative_input() stuff to select between the 
default prefetcht0 and prefetchnta based on module load patching and the xmm 
feature (most cpus!), so this is exactly what I need except for the missing 
define.

Mike

This message and any attached documents contain information from QLogic 
Corporation or its wholly-owned subsidiaries that may be confidential. If you 
are not the intended recipient, you may not read, copy, distribute, or use this 
information. If you have received this transmission in error, please notify the 
sender immediately by reply e-mail and then delete this message.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to