projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89e9fd3
)
sh: constify prefetch pointers.
author
Paul Mundt
<lethal@linux-sh.org>
Tue, 11 Jan 2011 05:39:35 +0000
(14:39 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Tue, 11 Jan 2011 05:39:35 +0000
(14:39 +0900)
prefetch()/prefetchw() are supposed to take a const void * instead of a
straight void *, which the build recently started complaining about, fix
them up.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/processor_32.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/include/asm/processor_32.h
b/arch/sh/include/asm/processor_32.h
index e3c73cdd8c909444fa64865e24bffc5b7ed8a0d9..900f8d72ffe2d86e902e590d53b180d73871da7a 100644
(file)
--- a/
arch/sh/include/asm/processor_32.h
+++ b/
arch/sh/include/asm/processor_32.h
@@
-194,15
+194,17
@@
extern unsigned long get_wchan(struct task_struct *p);
#define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[15])
#if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH4)
+
#define PREFETCH_STRIDE L1_CACHE_BYTES
#define ARCH_HAS_PREFETCH
#define ARCH_HAS_PREFETCHW
-static inline void prefetch(void *x)
+
+static inline void prefetch(const void *x)
{
__builtin_prefetch(x, 0, 3);
}
-static inline void prefetchw(void *x)
+static inline void prefetchw(
const
void *x)
{
__builtin_prefetch(x, 1, 3);
}