Skip to contentSkip to conversation

kdb: Replace task_curr(p) with kdb_task_has_cpu(p)

PATCH New Zhan Xusheng 1 participant 1 message Feb 4 KGDB / KDB /debug_core

lore
Share & tools
lore
#0 lore raw

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.

---
 kernel/debug/kdb/kdb_bt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/debug/kdb/kdb_bt.c +1 -1
index 137ba73f56fc..de36c4da6f74 100644
@@ -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