git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
include
/
asm-x86_64
/
semaphore.h
diff --git
a/include/asm-x86_64/semaphore.h
b/include/asm-x86_64/semaphore.h
index
064df08
..
a389aa6
100644
(file)
--- a/
include/asm-x86_64/semaphore.h
+++ b/
include/asm-x86_64/semaphore.h
@@
-106,7
+106,7
@@
static inline void down(struct semaphore * sem)
__asm__ __volatile__(
"# atomic down operation\n\t"
__asm__ __volatile__(
"# atomic down operation\n\t"
- LOCK
_PREFIX
"decl %0\n\t" /* --sem->count */
+ LOCK "decl %0\n\t" /* --sem->count */
"js 2f\n"
"1:\n"
LOCK_SECTION_START("")
"js 2f\n"
"1:\n"
LOCK_SECTION_START("")
@@
-130,7
+130,7
@@
static inline int down_interruptible(struct semaphore * sem)
__asm__ __volatile__(
"# atomic interruptible down operation\n\t"
__asm__ __volatile__(
"# atomic interruptible down operation\n\t"
- LOCK
_PREFIX
"decl %1\n\t" /* --sem->count */
+ LOCK "decl %1\n\t" /* --sem->count */
"js 2f\n\t"
"xorl %0,%0\n"
"1:\n"
"js 2f\n\t"
"xorl %0,%0\n"
"1:\n"
@@
-154,7
+154,7
@@
static inline int down_trylock(struct semaphore * sem)
__asm__ __volatile__(
"# atomic interruptible down operation\n\t"
__asm__ __volatile__(
"# atomic interruptible down operation\n\t"
- LOCK
_PREFIX
"decl %1\n\t" /* --sem->count */
+ LOCK "decl %1\n\t" /* --sem->count */
"js 2f\n\t"
"xorl %0,%0\n"
"1:\n"
"js 2f\n\t"
"xorl %0,%0\n"
"1:\n"
@@
-178,7
+178,7
@@
static inline void up(struct semaphore * sem)
{
__asm__ __volatile__(
"# atomic up operation\n\t"
{
__asm__ __volatile__(
"# atomic up operation\n\t"
- LOCK
_PREFIX
"incl %0\n\t" /* ++sem->count */
+ LOCK "incl %0\n\t" /* ++sem->count */
"jle 2f\n"
"1:\n"
LOCK_SECTION_START("")
"jle 2f\n"
"1:\n"
LOCK_SECTION_START("")