Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1416738 > unrolled thread
| Started by | "H. Peter Anvin" <hpa@linux.intel.com> |
|---|---|
| First post | 2016-06-08 01:40 +0200 |
| Last post | 2016-06-08 01:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 08/10] x86, asm: Use CC_SET()/CC_OUT() in <asm/rwsem.h> "H. Peter Anvin" <hpa@linux.intel.com> - 2016-06-08 01:40 +0200
[tip:x86/asm] x86, asm: Use CC_SET()/CC_OUT() in <asm/rwsem.h> "tip-bot for H. Peter Anvin" <tipbot@zytor.com> - 2016-06-08 01:50 +0200
| From | "H. Peter Anvin" <hpa@linux.intel.com> |
|---|---|
| Date | 2016-06-08 01:40 +0200 |
| Subject | [PATCH 08/10] x86, asm: Use CC_SET()/CC_OUT() in <asm/rwsem.h> |
| Message-ID | <rHyLf-GT-21@gated-at.bofh.it> |
From: "H. Peter Anvin" <hpa@zytor.com> Remove open-coded uses of set instructions to use CC_SET()/CC_OUT() in <asm/rwsem.h>. Signed-off-by: H. Peter Anvin <hpa@zytor.com> --- arch/x86/include/asm/rwsem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/rwsem.h b/arch/x86/include/asm/rwsem.h index c508770..1e8be26 100644 --- a/arch/x86/include/asm/rwsem.h +++ b/arch/x86/include/asm/rwsem.h @@ -149,10 +149,10 @@ static inline bool __down_write_trylock(struct rw_semaphore *sem) LOCK_PREFIX " cmpxchg %2,%0\n\t" " jnz 1b\n\t" "2:\n\t" - " sete %3\n\t" + CC_SET(e) "# ending __down_write_trylock\n\t" : "+m" (sem->count), "=&a" (tmp0), "=&r" (tmp1), - "=qm" (result) + CC_OUT(e) (result) : "er" (RWSEM_ACTIVE_WRITE_BIAS) : "memory", "cc"); return result; -- 2.7.3.0.11.gd79db92
[toc] | [next] | [standalone]
| From | "tip-bot for H. Peter Anvin" <tipbot@zytor.com> |
|---|---|
| Date | 2016-06-08 01:50 +0200 |
| Subject | [tip:x86/asm] x86, asm: Use CC_SET()/CC_OUT() in <asm/rwsem.h> |
| Message-ID | <rHyUV-KQ-1@gated-at.bofh.it> |
| In reply to | #1416738 |
Commit-ID: a7b6cddc8c403195d0052da3bde776ffee2fed10 Gitweb: http://git.kernel.org/tip/a7b6cddc8c403195d0052da3bde776ffee2fed10 Author: H. Peter Anvin <hpa@zytor.com> AuthorDate: Tue, 7 Jun 2016 16:31:07 -0700 Committer: H. Peter Anvin <hpa@linux.intel.com> CommitDate: Tue, 7 Jun 2016 16:36:42 -0700 x86, asm: Use CC_SET()/CC_OUT() in <asm/rwsem.h> Remove open-coded uses of set instructions to use CC_SET()/CC_OUT() in <asm/rwsem.h>. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Link: http://lkml.kernel.org/r/1465342269-492350-9-git-send-email-hpa@linux.intel.com --- arch/x86/include/asm/rwsem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/rwsem.h b/arch/x86/include/asm/rwsem.h index c508770..1e8be26 100644 --- a/arch/x86/include/asm/rwsem.h +++ b/arch/x86/include/asm/rwsem.h @@ -149,10 +149,10 @@ static inline bool __down_write_trylock(struct rw_semaphore *sem) LOCK_PREFIX " cmpxchg %2,%0\n\t" " jnz 1b\n\t" "2:\n\t" - " sete %3\n\t" + CC_SET(e) "# ending __down_write_trylock\n\t" : "+m" (sem->count), "=&a" (tmp0), "=&r" (tmp1), - "=qm" (result) + CC_OUT(e) (result) : "er" (RWSEM_ACTIVE_WRITE_BIAS) : "memory", "cc"); return result;
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web