kdb: Replace task_curr(p) with kdb_task_has_cpu(p)
PATCH 1/1 kdb: Replace task_curr(p) with kdb_task_has_cpu(p)
Replaced the direct usage of task_curr(p) with kdb_task_has_cpu(p) for consistency with existing encapsulation in kdb_private.h.
Signed-off-by Zhan Xusheng <[email protected]>
--- kernel/debug/kdb/kdb_bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/debug/kdb/kdb_bt.c +1 -1
@@ -152,7 +152,7 @@ kdb_bt(int argc, const char **argv)for_each_process_thread (g, p) {if (KDB_FLAG (CMD_INTERRUPT ))return 0 ; -if (task_curr (p)) +if (kdb_task_has_cpu (p))continue ;if (kdb_bt1 (p, mask, btaprompt))return 0 ;
Signature · 1 line
2.43.0