Skip to content

Commit

Permalink
cris, exec: remove redundant set_fs(USER_DS)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mathias Krause authored and Linus Torvalds committed Jul 26, 2011
1 parent ce1bb7a commit 5ec80e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion arch/cris/include/arch-v10/arch/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
Expand Down
1 change: 0 additions & 1 deletion arch/cris/include/arch-v32/arch/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
Expand Down

0 comments on commit 5ec80e5

Please sign in to comment.