Re: 2.4.17 absurd number of context switches

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 28 Dec 2001 17:43:46 +0000 (GMT)


> local_irq_disable();
> if (current->counter > 0)
> --current->counter;
> local_irq_enable();

Umm: SuS sayeth..

DESCRIPTION

The sched_yield() function forces the running thread to relinquish the
processor until it again becomes the head of its thread list. It takes
no arguments.

Which doesnt seem to be what you are doing.
-
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/