Unified · Split
| @@ -2908,7 +2908,7 @@ static void task_tick_numa(struct rq *rq, struct task_struct *curr) · 2907 unmodified lines | ||
| 2908 | 2908 | /* |
| 2909 | 2909 | * We don't care about NUMA placement if we don't have memory. |
| 2910 | 2910 | */ |
| 2911 | − if (!curr->mm || (curr->flags & PF_EXITING) || work->next != work) | |
| 2911 | + if ((curr->flags & (PF_EXITING | PF_KTHREAD)) || work->next != work) | |
| 2912 | 2912 | return; |
| 2913 | 2913 | |
| 2914 | 2914 | /* |