diff options
| author | zy <[email protected]> | 2023-12-05 04:49:16 -0500 |
|---|---|---|
| committer | zy <[email protected]> | 2023-12-05 04:49:16 -0500 |
| commit | 0215389b02cabd0c6fe7e43bf7109aa824d7884a (patch) | |
| tree | e1d42144164c9678dba5f8c506c563ab0f0bb0e9 /source | |
| parent | 76213bc8bcb3d95a229e697e178d5f69ee542fa9 (diff) | |
fix TASK_IDLE
Diffstat (limited to 'source')
| -rw-r--r-- | source/module/monitor_kernel_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/module/monitor_kernel_lib.c b/source/module/monitor_kernel_lib.c index a23a024..3634a7b 100644 --- a/source/module/monitor_kernel_lib.c +++ b/source/module/monitor_kernel_lib.c @@ -209,7 +209,7 @@ void diag_task_info_work(struct work_struct *work) { // for task info do_each_thread(g, p) { if (p->__state == TASK_RUNNING || __task_contributes_to_load(p) || - p->__state == TASK_IDLE || 1) { + ((READ_ONCE(p->__state) & TASK_IDLE) != 0)) { get_task_struct(p); // count +1 |
