--- kernel/sched.c.org Fri Oct 18 14:46:36 2002 +++ kernel/sched.c Sat Oct 19 14:07:08 2002 @@ -954,6 +954,25 @@ prio_array_t *array; struct list_head *queue; int idx; + int now = jiffies; + static int timeout, context; + + if (context++ > 100000) { + struct task_struct * p; + static void show_task(task_t * p); + + read_lock(&tasklist_lock); + for_each_process(p) + if (p->state == TASK_RUNNING) + show_task(p); + read_unlock(&tasklist_lock); + context = 0; + printk("SPACER\n\n"); + } + if (time_after(now, timeout)) { + context = 0; + timeout = now + HZ; + } /* * Test if we are atomic. Since do_exit() needs to call into