Skip to content
Permalink
Browse files
sched/alt: [Sync] b03fbd4 sched: Introduce task_is_running()
  • Loading branch information
cchalpha committed Nov 2, 2021
1 parent 185989e commit d9b7f3286c71166d00ccfcb64f13c1147210e865
Showing 1 changed file with 2 additions and 2 deletions.
@@ -4214,7 +4214,7 @@ static inline void sched_submit_work(struct task_struct *tsk)
{
unsigned int task_flags;

if (!tsk->state)
if (task_is_running(tsk))
return;

task_flags = tsk->flags;
@@ -6032,7 +6032,7 @@ void sched_show_task(struct task_struct *p)

pr_info("task:%-15.15s state:%c", p->comm, task_state_to_char(p));

if (p->state == TASK_RUNNING)
if (task_is_running(p))
pr_cont(" running task ");
#ifdef CONFIG_DEBUG_STACK_USAGE
free = stack_not_used(p);

0 comments on commit d9b7f32

Please sign in to comment.