git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Directed yield: cpu_relax variants for spinlocks and rw-locks
[pandora-kernel.git]
/
include
/
asm-parisc
/
spinlock.h
diff --git
a/include/asm-parisc/spinlock.h
b/include/asm-parisc/spinlock.h
index
a93960e
..
e182553
100644
(file)
--- a/
include/asm-parisc/spinlock.h
+++ b/
include/asm-parisc/spinlock.h
@@
-152,4
+152,8
@@
static __inline__ int __raw_write_can_lock(raw_rwlock_t *rw)
return !rw->counter;
}
+#define _raw_spin_relax(lock) cpu_relax()
+#define _raw_read_relax(lock) cpu_relax()
+#define _raw_write_relax(lock) cpu_relax()
+
#endif /* __ASM_SPINLOCK_H */