Skip to content

Commit 7fc20c5

Browse files
Paul E. McKenneypaulmck
authored andcommitted
kdb: Make KDB use the new is_idle_task() API
Change from direct comparison of ->pid with zero to is_idle_task(). Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Jason Wessel <jason.wessel@windriver.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
1 parent 29f043a commit 7fc20c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/debug/kdb/kdb_support.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ char kdb_task_state_char (const struct task_struct *p)
636636
(p->exit_state & EXIT_ZOMBIE) ? 'Z' :
637637
(p->exit_state & EXIT_DEAD) ? 'E' :
638638
(p->state & TASK_INTERRUPTIBLE) ? 'S' : '?';
639-
if (p->pid == 0) {
639+
if (is_idle_task(p)) {
640640
/* Idle task. Is it really idle, apart from the kdb
641641
* interrupt? */
642642
if (!kdb_task_has_cpu(p) || kgdb_info[cpu].irq_depth == 1) {

0 commit comments

Comments
 (0)