linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.4.20 sched.c never resets cpus_runnable for UP
@ 2003-03-26  0:32 Keith Owens
  0 siblings, 0 replies; only message in thread
From: Keith Owens @ 2003-03-26  0:32 UTC (permalink / raw)
  To: linux-kernel

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 :(


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-26  0:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-26  0:32 2.4.20 sched.c never resets cpus_runnable for UP Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).