Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234300
b: refs/heads/master
c: 522d7de
h: refs/heads/master
v: v3
  • Loading branch information
Michel Lespinasse authored and Thomas Gleixner committed Mar 11, 2011
1 parent f5a2042 commit 2aaec06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c0c9ed15042ceac7c485813012a0a97316101b57
refs/heads/master: 522d7decc0370070448a8c28982c8dfd8970489e
5 changes: 2 additions & 3 deletions trunk/arch/arm/include/asm/futex.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval)
if (!access_ok(VERIFY_WRITE, uaddr, sizeof(int)))
return -EFAULT;

pagefault_disable(); /* implies preempt_disable() */
/* Note that preemption is disabled by futex_atomic_cmpxchg_inatomic
* call sites. */

__asm__ __volatile__("@futex_atomic_cmpxchg_inatomic\n"
"1: " T(ldr) " %0, [%3]\n"
Expand All @@ -115,8 +116,6 @@ futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval)
: "r" (oldval), "r" (newval), "r" (uaddr), "Ir" (-EFAULT)
: "cc", "memory");

pagefault_enable(); /* subsumes preempt_enable() */

return val;
}

Expand Down

0 comments on commit 2aaec06

Please sign in to comment.