diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-12-03 05:09:10 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-12-16 08:37:44 -0500 |
commit | 1c182a628075af7431edb8155601740867b5ae51 (patch) | |
tree | 8e7b6ef1e8fd3a4d57254191a1f6e43cb7f59953 | |
parent | dea24190fbfb340dea5224e32161955514bef31b (diff) |
s390/ptrace: simplify enable/disable single step
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>
-rw-r--r-- | arch/s390/kernel/ptrace.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/s390/kernel/ptrace.c b/arch/s390/kernel/ptrace.c index e65c91c591e8..c369a26d1d56 100644 --- a/arch/s390/kernel/ptrace.c +++ b/arch/s390/kernel/ptrace.c | |||
@@ -107,15 +107,11 @@ void update_cr_regs(struct task_struct *task) | |||
107 | void user_enable_single_step(struct task_struct *task) | 107 | void user_enable_single_step(struct task_struct *task) |
108 | { | 108 | { |
109 | set_tsk_thread_flag(task, TIF_SINGLE_STEP); | 109 | set_tsk_thread_flag(task, TIF_SINGLE_STEP); |
110 | if (task == current) | ||
111 | update_cr_regs(task); | ||
112 | } | 110 | } |
113 | 111 | ||
114 | void user_disable_single_step(struct task_struct *task) | 112 | void user_disable_single_step(struct task_struct *task) |
115 | { | 113 | { |
116 | clear_tsk_thread_flag(task, TIF_SINGLE_STEP); | 114 | clear_tsk_thread_flag(task, TIF_SINGLE_STEP); |
117 | if (task == current) | ||
118 | update_cr_regs(task); | ||
119 | } | 115 | } |
120 | 116 | ||
121 | /* | 117 | /* |