projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a29059
)
Blackfin arch: make sure we declare the revid functions as pure (since they are)
author
Mike Frysinger
<
[email protected]
>
Mon, 21 May 2007 10:09:22 +0000
(18:09 +0800)
committer
Linus Torvalds
<
[email protected]
>
Mon, 21 May 2007 16:50:22 +0000
(09:50 -0700)
Signed-off-by: Mike Frysinger <
[email protected]
>
Signed-off-by: Bryan Wu <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/asm-blackfin/processor.h
patch
|
blob
|
history
diff --git
a/include/asm-blackfin/processor.h
b/include/asm-blackfin/processor.h
index 0336ff132c16db742f756643cc1a01ff221e1aea..aba2b30a8ed8133e06634629a7bca47e1dc8b220 100644
(file)
--- a/
include/asm-blackfin/processor.h
+++ b/
include/asm-blackfin/processor.h
@@
-104,13
+104,13
@@
unsigned long get_wchan(struct task_struct *p);
#define cpu_relax() barrier()
/* Get the Silicon Revision of the chip */
-static inline uint32_t bfin_revid(void)
+static inline
__attribute_pure__
uint32_t bfin_revid(void)
{
/* stored in the upper 4 bits */
return bfin_read_CHIPID() >> 28;
}
-static inline uint32_t bfin_compiled_revid(void)
+static inline
__attribute_pure__
uint32_t bfin_compiled_revid(void)
{
#if defined(CONFIG_BF_REV_0_0)
return 0;