Skip to content

Commit

Permalink
sched/alt: [Sync] b03fbd4 sched: Introduce task_is_running()
Browse files Browse the repository at this point in the history
  • Loading branch information
cchalpha committed Aug 30, 2021
1 parent 13ccd1f commit e6c231b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/sched/alt_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e6c231b

Please sign in to comment.