From: David S. Miller Date: Thu, 28 Sep 2006 02:43:02 +0000 (-0700) Subject: [SPARC]: Don't zero out tail during copy_from_user_inatomic(). X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3a1d5c84ed2fa4034f86e3b204129c139471516e;p=linux-beck.git [SPARC]: Don't zero out tail during copy_from_user_inatomic(). Actually, since we use the same code for all the copying types in and out of userspace, we check at runtime whether preemption is disabled. Signed-off-by: David S. Miller --- diff --git a/arch/sparc/lib/copy_user.S b/arch/sparc/lib/copy_user.S index 577505b692ae..ef095b6c43b1 100644 --- a/arch/sparc/lib/copy_user.S +++ b/arch/sparc/lib/copy_user.S @@ -14,6 +14,7 @@ #include #include #include +#include /* Work around cpp -rob */ #define ALLOC #alloc @@ -366,6 +367,9 @@ fixupretl: blu 1f cmp %o1, %g1 bgeu 1f + ld [%g6 + TI_PREEMPT], %g1 + cmp %g1, 0 + bne 1f nop save %sp, -64, %sp mov %i0, %o0