s390/ptrace: simplify enable/disable single step
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 3 Dec 2013 10:09:10 +0000 (11:09 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Dec 2013 13:37:44 +0000 (14:37 +0100)
The user_enable_single_step() and user_disable_sindle_step() functions
are always called on the inferior, never for the currently active
process. Remove the unnecessary check for the current process and
the update_cr_regs() call from the enable/disable functions.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/ptrace.c

index e65c91c591e8b99e4189f31b403a35ad06837f4f..c369a26d1d56a3ab21e944877b4f51e42a8d20d1 100644 (file)
@@ -107,15 +107,11 @@ void update_cr_regs(struct task_struct *task)
 void user_enable_single_step(struct task_struct *task)
 {
        set_tsk_thread_flag(task, TIF_SINGLE_STEP);
-       if (task == current)
-               update_cr_regs(task);
 }
 
 void user_disable_single_step(struct task_struct *task)
 {
        clear_tsk_thread_flag(task, TIF_SINGLE_STEP);
-       if (task == current)
-               update_cr_regs(task);
 }
 
 /*