Loading kernel/sched.c +1 −1 Original line number Diff line number Diff line Loading @@ -2041,7 +2041,7 @@ void set_task_cpu(struct task_struct *p, unsigned int new_cpu) * We should never call set_task_cpu() on a blocked task, * ttwu() will sort out the placement. */ WARN_ON(p->state != TASK_RUNNING && p->state != TASK_WAKING); WARN_ON_ONCE(p->state != TASK_RUNNING && p->state != TASK_WAKING); #endif trace_sched_migrate_task(p, new_cpu); Loading Loading
kernel/sched.c +1 −1 Original line number Diff line number Diff line Loading @@ -2041,7 +2041,7 @@ void set_task_cpu(struct task_struct *p, unsigned int new_cpu) * We should never call set_task_cpu() on a blocked task, * ttwu() will sort out the placement. */ WARN_ON(p->state != TASK_RUNNING && p->state != TASK_WAKING); WARN_ON_ONCE(p->state != TASK_RUNNING && p->state != TASK_WAKING); #endif trace_sched_migrate_task(p, new_cpu); Loading