]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm, exec: remove redundant set_fs(USER_DS)
authorMathias Krause <minipli@googlemail.com>
Wed, 5 Oct 2011 00:42:28 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Oct 2011 06:06:23 +0000 (17:06 +1100)
The address limit is already set in flush_old_exec() so this
set_fs(USER_DS) is redundant.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/arm/include/asm/processor.h

index b2d9df5667af937476baf5e64ded8520ea3fd5d4..3962caf485c09776f7f493e9e05ef1841190b4ae 100644 (file)
@@ -55,7 +55,6 @@ struct thread_struct {
 #define start_thread(regs,pc,sp)                                       \
 ({                                                                     \
        unsigned long *stack = (unsigned long *)sp;                     \
-       set_fs(USER_DS);                                                \
        memset(regs->uregs, 0, sizeof(regs->uregs));                    \
        if (current->personality & ADDR_LIMIT_32BIT)                    \
                regs->ARM_cpsr = USR_MODE;                              \