fix ARCH_HAS_PREFETCH
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines · Andrew Morton
Which needs a working
ARCH_HAS_PREFETCHto avoid probable extra code generation on CPUs which don't have prefetch.
When you use gcc 3.1+ you can use __builtin_prefetch() and gcc takes care of it. See asm-x86_64/prefetch.h of a working example.
Of course generic C code should not use the ugly builtins directly, but it could be used to define the wrappers.
-Andi