[PATCH 3/8] ppc64: add a watchdog driver for rtas

Arnd Bergmann arnd at arndb.de
Thu May 19 00:39:51 EST 2005


On Middeweken 18 Mai 2005 16:45, Nathan Lynch wrote:
> 
> > A semaphore would also be the wrong approach since we don't want
> > processes to block but instead to fail opening the watchdog twice.
> 
> I should have been more explicit.  What I had in mind was using
> down_trylock and returning -EBUSY if it failed.

Well, that's also pointless. If the only operations you ever do
on a semaphore are down_trylock() and up(), you end up using
only the atomic variable in there while wasting a few bytes of
extra memory for storing the wait queue head ;-)

	Arnd <><



More information about the Linuxppc64-dev mailing list