Skip to content

Commit

Permalink
sparc: Replace test_ti_thread_flag() with test_tsk_thread_flag()
Browse files Browse the repository at this point in the history
Use test_tsk_thread_flag() directly instead of test_ti_thread_flag() to
improve readability when the argument type is struct task_struct, it is
similar with commit 5afc785 ("arm64: Use test_tsk_thread_flag() for
checking TIF_SINGLESTEP").

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tiezhu Yang authored and David S. Miller committed Feb 19, 2021
1 parent bf8c554 commit 8befe02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc/kernel/process_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ void exit_thread(struct task_struct *tsk)
#ifndef CONFIG_SMP
if (last_task_used_math == tsk) {
#else
if (test_ti_thread_flag(task_thread_info(tsk), TIF_USEDFPU)) {
if (test_tsk_thread_flag(tsk, TIF_USEDFPU)) {
#endif
/* Keep process from leaving FPU in a bogon state. */
put_psr(get_psr() | PSR_EF);
Expand Down

0 comments on commit 8befe02

Please sign in to comment.