Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71702
b: refs/heads/master
c: ab48357
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and Thomas Gleixner committed Oct 19, 2007
1 parent c90ccad commit 874f68b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 124d395fd05efb65d00ca23c7bcc86c272bd8813
refs/heads/master: ab483570a13be2a34c0502b166df8f8b26802103
6 changes: 0 additions & 6 deletions trunk/include/asm-x86/processor_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,6 @@ static inline void sync_core(void)
asm volatile("cpuid" : "=a" (tmp) : "0" (1) : "ebx","ecx","edx","memory");
}

#define ARCH_HAS_PREFETCH
static inline void prefetch(void *x)
{
asm volatile("prefetcht0 (%0)" :: "r" (x));
}

#define ARCH_HAS_PREFETCHW 1
static inline void prefetchw(void *x)
{
Expand Down
9 changes: 2 additions & 7 deletions trunk/include/linux/prefetch.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,12 @@
*/

/*
* These cannot be do{}while(0) macros. See the mental gymnastics in
* the loop macro.
*/

#ifndef ARCH_HAS_PREFETCH
static inline void prefetch(const void *x) {;}
#define prefetch(x) __builtin_prefetch(x)
#endif

#ifndef ARCH_HAS_PREFETCHW
static inline void prefetchw(const void *x) {;}
#define prefetchw(x) __builtin_prefetch(x,1)
#endif

#ifndef ARCH_HAS_SPINLOCK_PREFETCH
Expand Down

0 comments on commit 874f68b

Please sign in to comment.