Re: 2.4.17 absurd number of context switches

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri Dec 28 2001 - 12:43:46 EST


> 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/



This archive was generated by hypermail 2b29 : Mon Dec 31 2001 - 21:00:17 EST