On Wed, 24 May 2000, Alan Cox wrote:
> > Eventually the semaphore will be replaced by the
> > spinlock (at least most ocurrences) but I need more than
> > a couple of hours looking at the code for the first time
> > to do it right...
>
> I think you will find you need both. Look at set_pll() for example. We can't
> sleep holding a spinlock and we certainly cannot have people re-entering
> set_pll()
... and on the other hand you can't use semaphores in irq handlers.
I see. I'll review the locking problems.
Gerd
-- Protecting the children is a good way to get a lot of adults who cant stand up for themselves. -- seen in some sig on /.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:12 EST