avr32, exec: remove redundant set_fs(USER_DS)
authorMathias Krause <minipli@googlemail.com>
Fri, 10 Jun 2011 13:09:05 +0000 (15:09 +0200)
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Tue, 14 Jun 2011 11:38:24 +0000 (13:38 +0200)
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>
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
arch/avr32/include/asm/processor.h

index 49a88f5a9d2feda1c7b033cfd19c71453c6dd6bf..108502bc67706786d3125dff42be43f6a1d9b7d2 100644 (file)
@@ -131,7 +131,6 @@ struct thread_struct {
  */
 #define start_thread(regs, new_pc, new_sp)      \
        do {                                     \
-               set_fs(USER_DS);                 \
                memset(regs, 0, sizeof(*regs));  \
                regs->sr = MODE_USER;            \
                regs->pc = new_pc & ~1;          \