]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - arch/nios2/kernel/process.c
sched: Introduce task_is_running()
[mirror_ubuntu-jammy-kernel.git] / arch / nios2 / kernel / process.c
index c5f916ca6845f02876a9826a0b0fa9dcfa265715..9ff37ba2bb6032184fcf3d284b00f42f5b3b8ff5 100644 (file)
@@ -223,7 +223,7 @@ unsigned long get_wchan(struct task_struct *p)
        unsigned long stack_page;
        int count = 0;
 
-       if (!p || p == current || p->state == TASK_RUNNING)
+       if (!p || p == current || task_is_running(p))
                return 0;
 
        stack_page = (unsigned long)p;