From 57a8972aa4151d11b9e771cb82a5201de472c4e3 Mon Sep 17 00:00:00 2001 From: zy Date: Mon, 27 Nov 2023 22:24:06 -0500 Subject: [PATCH] do_each_thread: remove alway true --- source/module/monitor_kernel_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/module/monitor_kernel_lib.c b/source/module/monitor_kernel_lib.c index b5cf793..de8eb8c 100644 --- a/source/module/monitor_kernel_lib.c +++ b/source/module/monitor_kernel_lib.c @@ -329,7 +329,7 @@ int diag_test(int nid) { do_each_thread(g, p) { if (p->__state == TASK_RUNNING || __task_contributes_to_load(p) || - p->__state == TASK_IDLE || 1) { + p->__state == TASK_IDLE) { get_task_struct(p);