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-parisc
/
futex.h
diff --git
a/include/asm-parisc/futex.h
b/include/asm-parisc/futex.h
index d84bbb283fd17c7a8e9fb92d4a30a660efe86263..dbee6e60aa8139e66897ba65ba4ac9155bf00dab 100644
(file)
--- a/
include/asm-parisc/futex.h
+++ b/
include/asm-parisc/futex.h
@@
-21,7
+21,7
@@
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:
@@
-33,7
+33,7
@@
futex_atomic_op_inuser (int encoded_op, int __user *uaddr)
ret = -ENOSYS;
}
-
dec_preempt_count
();
+
pagefault_enable
();
if (!ret) {
switch (cmp) {