summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include/asm/ipipe_base.h
diff options
context:
space:
mode:
authorPhilippe Gerum <rpm@xenomai.org>2009-06-16 05:25:37 +0200
committerMike Frysinger <vapier@gentoo.org>2009-06-23 03:15:53 +0200
commit06ecc190f3928850cb77c498f745fc8e9a7e2fd7 (patch)
tree41d705a007dcc0472bf1555e5163f50d52da9f80 /arch/blackfin/include/asm/ipipe_base.h
parentBlackfin: allow people to select BF51x-0.1 silicon rev (diff)
downloadlinux-06ecc190f3928850cb77c498f745fc8e9a7e2fd7.tar.xz
linux-06ecc190f3928850cb77c498f745fc8e9a7e2fd7.zip
Blackfin: convert interrupt pipeline to irqflags
Signed-off-by: Philippe Gerum <rpm@xenomai.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/include/asm/ipipe_base.h')
-rw-r--r--arch/blackfin/include/asm/ipipe_base.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/arch/blackfin/include/asm/ipipe_base.h b/arch/blackfin/include/asm/ipipe_base.h
index 3e8acbd1a3be..490098f532a7 100644
--- a/arch/blackfin/include/asm/ipipe_base.h
+++ b/arch/blackfin/include/asm/ipipe_base.h
@@ -51,23 +51,23 @@
extern unsigned long __ipipe_root_status; /* Alias to ipipe_root_cpudom_var(status) */
-static inline void __ipipe_stall_root(void)
-{
- volatile unsigned long *p = &__ipipe_root_status;
- set_bit(0, p);
-}
+#define __ipipe_stall_root() \
+ do { \
+ volatile unsigned long *p = &__ipipe_root_status; \
+ set_bit(0, p); \
+ } while (0)
-static inline unsigned long __ipipe_test_and_stall_root(void)
-{
- volatile unsigned long *p = &__ipipe_root_status;
- return test_and_set_bit(0, p);
-}
+#define __ipipe_test_and_stall_root() \
+ ({ \
+ volatile unsigned long *p = &__ipipe_root_status; \
+ test_and_set_bit(0, p); \
+ })
-static inline unsigned long __ipipe_test_root(void)
-{
- const unsigned long *p = &__ipipe_root_status;
- return test_bit(0, p);
-}
+#define __ipipe_test_root() \
+ ({ \
+ const unsigned long *p = &__ipipe_root_status; \
+ test_bit(0, p); \
+ })
#endif /* !__ASSEMBLY__ */