projects
/
urcu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ca9a18e
)
Add rewrite of rep_nop
author
Mathieu Desnoyers
<mathieu.desnoyers@polymtl.ca>
Wed, 13 May 2009 17:40:26 +0000
(13:40 -0400)
committer
Mathieu Desnoyers
<mathieu.desnoyers@polymtl.ca>
Wed, 13 May 2009 17:40:26 +0000
(13:40 -0400)
Rewritten from scratch, OK for LGPL license.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
arch_x86.h
patch
|
blob
|
blame
|
history
diff --git
a/arch_x86.h
b/arch_x86.h
index 9e0079d6a5a7fc8fee6e81e0ea26d80995446450..4a2573e0f52934e3a2635516ad5f66cfd7c5c563 100644
(file)
--- a/
arch_x86.h
+++ b/
arch_x86.h
@@
-84,6
+84,11
@@
/* Nop everywhere except on alpha. */
#define smp_read_barrier_depends()
+static inline void rep_nop(void)
+{
+ asm volatile("rep; nop" : : : "memory");
+}
+
static inline void cpu_relax(void)
{
rep_nop();
This page took
0.025436 seconds
and
4
git commands to generate.