cris, exec: remove redundant set_fs(USER_DS)
authorMathias Krause <minipli@googlemail.com>
Tue, 26 Jul 2011 00:12:44 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 03:57:12 +0000 (20:57 -0700)
The address limit is already set in flush_old_exec() so those calls to
set_fs(USER_DS) are redundant.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/cris/include/arch-v10/arch/processor.h
arch/cris/include/arch-v32/arch/processor.h

index cc692c7a0660cb79b5644ba324068d825e5a94b7..93feb2a487d83d28747adf82101b52511f046c4d 100644 (file)
@@ -53,7 +53,6 @@ struct thread_struct {
  */
 
 #define start_thread(regs, ip, usp) do { \
-       set_fs(USER_DS);      \
        regs->irp = ip;       \
        regs->dccr |= 1 << U_DCCR_BITNR; \
        wrusp(usp);           \
index f80b47790ca6e29f5e1e4065a43f5213dfab7fff..9603c907fbc4947f4d31077355224fb83638274d 100644 (file)
@@ -47,7 +47,6 @@ struct thread_struct {
  */
 #define start_thread(regs, ip, usp) \
 do { \
-       set_fs(USER_DS); \
        regs->erp = ip; \
        regs->ccs |= 1 << (U_CCS_BITNR + CCS_SHIFT); \
        wrusp(usp); \