X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=arch%2Farm%2Flib%2Fuaccess_with_memcpy.c;h=d72b90905132487257220939a255ac7ed1d3754d;hb=40d3f02851577da27b5cbb1538888301245ef1e7;hp=3e58d710013c3ad9b377fc76e6dad58f377e88a7;hpb=3fa609755c11fbe8770ede4d895ebb86fb7b9f1e;p=linux-2.6-microblaze.git diff --git a/arch/arm/lib/uaccess_with_memcpy.c b/arch/arm/lib/uaccess_with_memcpy.c index 3e58d710013c..d72b90905132 100644 --- a/arch/arm/lib/uaccess_with_memcpy.c +++ b/arch/arm/lib/uaccess_with_memcpy.c @@ -96,7 +96,7 @@ __copy_to_user_memcpy(void __user *to, const void *from, unsigned long n) } /* the mmap semaphore is taken only if not in an atomic context */ - atomic = in_atomic(); + atomic = faulthandler_disabled(); if (!atomic) down_read(¤t->mm->mmap_sem); @@ -136,7 +136,7 @@ out: } unsigned long -__copy_to_user(void __user *to, const void *from, unsigned long n) +arm_copy_to_user(void __user *to, const void *from, unsigned long n) { /* * This test is stubbed out of the main function above to keep @@ -190,7 +190,7 @@ out: return n; } -unsigned long __clear_user(void __user *addr, unsigned long n) +unsigned long arm_clear_user(void __user *addr, unsigned long n) { /* See rational for this in __copy_to_user() above. */ if (n < 64)