fix TASK_IDLE
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user