2.4.20 sched.c never resets cpus_runnable for UP

From: Keith Owens (kaos@ocs.com.au)
Date: Tue Mar 25 2003 - 19:32:46 EST


kernel/sched.c uses task_set_cpu() and task_release_cpu() to modify the
cpus_runnable flag. On UP, task_set_cpu() is called but
task_release_cpu() is not, it is wrapped in #ifdef CONFIG_SMP. The
result is that all tasks have cpus_runnable=1 and task_has_cpu()
reports true for all tasks.

How to confuse a debugger in one easy lesson :(

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:22 EST