Skip to content

Commit 5afc785

Browse files
committed
arm64: Use test_tsk_thread_flag() for checking TIF_SINGLESTEP
Rather than open-code test_tsk_thread_flag() at each callsite, simply replace the couple of offenders with calls to test_tsk_thread_flag() directly. Signed-off-by: Will Deacon <[email protected]>
1 parent d83ee6e commit 5afc785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/kernel/debug-monitors.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,14 +394,14 @@ void user_rewind_single_step(struct task_struct *task)
394394
* If single step is active for this thread, then set SPSR.SS
395395
* to 1 to avoid returning to the active-pending state.
396396
*/
397-
if (test_ti_thread_flag(task_thread_info(task), TIF_SINGLESTEP))
397+
if (test_tsk_thread_flag(task, TIF_SINGLESTEP))
398398
set_regs_spsr_ss(task_pt_regs(task));
399399
}
400400
NOKPROBE_SYMBOL(user_rewind_single_step);
401401

402402
void user_fastforward_single_step(struct task_struct *task)
403403
{
404-
if (test_ti_thread_flag(task_thread_info(task), TIF_SINGLESTEP))
404+
if (test_tsk_thread_flag(task, TIF_SINGLESTEP))
405405
clear_regs_spsr_ss(task_pt_regs(task));
406406
}
407407

0 commit comments

Comments
 (0)