projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] mm: pagefault_{disable,enable}()
[GitHub/LineageOS/android_kernel_samsung_universal7580.git]
/
include
/
asm-powerpc
/
futex.h
diff --git
a/include/asm-powerpc/futex.h
b/include/asm-powerpc/futex.h
index 936422e54891f0cab44229639f8321e9d47a270e..3f3673fd3ff34abef169c139c71302084b2cc874 100644
(file)
--- a/
include/asm-powerpc/futex.h
+++ b/
include/asm-powerpc/futex.h
@@
-43,7
+43,7
@@
static inline int futex_atomic_op_inuser (int encoded_op, int __user *uaddr)
if (! access_ok (VERIFY_WRITE, uaddr, sizeof(int)))
return -EFAULT;
-
inc_preempt_count
();
+
pagefault_disable
();
switch (op) {
case FUTEX_OP_SET:
@@
-65,7
+65,7
@@
static inline int futex_atomic_op_inuser (int encoded_op, int __user *uaddr)
ret = -ENOSYS;
}
-
dec_preempt_count
();
+
pagefault_enable
();
if (!ret) {
switch (cmp) {