Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36243
b: refs/heads/master
c: e86d6b6
h: refs/heads/master
i:
  36241: 8bf86ed
  36239: afa4c25
v: v3
  • Loading branch information
Paul Mundt committed Sep 27, 2006
1 parent 3a86f32 commit 1bb6b38
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e7be853df79fe8ae08ba7d933bd21e1dbb0db7bc
refs/heads/master: e86d6b66f5b38680746b2cb71186d90af17f150f
13 changes: 13 additions & 0 deletions trunk/include/asm-sh/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,5 +266,18 @@ extern unsigned long get_wchan(struct task_struct *p);
#define cpu_sleep() __asm__ __volatile__ ("sleep" : : : "memory")
#define cpu_relax() barrier()

#if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH3) || \
defined(CONFIG_CPU_SH4)
#define PREFETCH_STRIDE L1_CACHE_BYTES
#define ARCH_HAS_PREFETCH
#define ARCH_HAS_PREFETCHW
static inline void prefetch(void *x)
{
__asm__ __volatile__ ("pref @%0\n\t" : : "r" (x) : "memory");
}

#define prefetchw(x) prefetch(x)
#endif

#endif /* __KERNEL__ */
#endif /* __ASM_SH_PROCESSOR_H */

0 comments on commit 1bb6b38

Please sign in to comment.