-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 257228 b: refs/heads/master c: 4625cd6 h: refs/heads/master v: v3
- Loading branch information
Jan Beulich
authored and
Ingo Molnar
committed
Jul 21, 2011
1 parent
590e166
commit e93d301
Showing
7 changed files
with
57 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: dd2897bf0f4d523238e87dabb23e9634ea9ba73d | ||
refs/heads/master: 4625cd637919edfb562e0d62abf94f52e9321335 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* Slow paths of read/write spinlocks. */ | ||
|
||
#include <linux/linkage.h> | ||
#include <asm/alternative-asm.h> | ||
#include <asm/frame.h> | ||
#include <asm/rwlock.h> | ||
|
||
#ifdef CONFIG_X86_32 | ||
# define __lock_ptr eax | ||
#else | ||
# define __lock_ptr rdi | ||
#endif | ||
|
||
ENTRY(__write_lock_failed) | ||
CFI_STARTPROC | ||
FRAME | ||
0: LOCK_PREFIX | ||
addl $RW_LOCK_BIAS, (%__lock_ptr) | ||
1: rep; nop | ||
cmpl $RW_LOCK_BIAS, (%__lock_ptr) | ||
jne 1b | ||
LOCK_PREFIX | ||
subl $RW_LOCK_BIAS, (%__lock_ptr) | ||
jnz 0b | ||
ENDFRAME | ||
ret | ||
CFI_ENDPROC | ||
END(__write_lock_failed) | ||
|
||
ENTRY(__read_lock_failed) | ||
CFI_STARTPROC | ||
FRAME | ||
0: LOCK_PREFIX | ||
incl (%__lock_ptr) | ||
1: rep; nop | ||
cmpl $1, (%__lock_ptr) | ||
js 1b | ||
LOCK_PREFIX | ||
decl (%__lock_ptr) | ||
js 0b | ||
ENDFRAME | ||
ret | ||
CFI_ENDPROC | ||
END(__read_lock_failed) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters