x86 & generic: change to __builtin_prefetch()
commitab483570a13be2a34c0502b166df8f8b26802103
authorAndi Kleen <ak@suse.de>
Fri, 19 Oct 2007 18:35:04 +0000 (19 20:35 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 19 Oct 2007 18:35:04 +0000 (19 20:35 +0200)
tree6f9997b9313227b25faf28d67fe6e06d001022cc
parent124d395fd05efb65d00ca23c7bcc86c272bd8813
x86 & generic: change to __builtin_prefetch()

gcc 3.2+ supports __builtin_prefetch, so it's possible to use it on all
architectures. Change the generic fallback in linux/prefetch.h to use it
instead of noping it out. gcc should do the right thing when the
architecture doesn't support prefetching

Undefine the x86-64 inline assembler version and use the fallback.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/processor_64.h
include/linux/prefetch.h