[parisc-linux-cvs] Re: DIFF 2.6.7-pa10 iosapic/debug/rp3440 boot

James Bottomley James.Bottomley at SteelEye.com
Sat Jul 10 08:10:25 MDT 2004


On Sat, 2004-07-10 at 03:01, Grant Grundler wrote:
>  void pdc_emergency_unlock(void)
>  {
> -        spin_unlock(&pdc_lock);
> +        spin_trylock(&pdc_lock);  /* get pdc_lock before spinlock */
> +        spin_unlock(&pdc_lock);   /* DEBUG code freaks out here. */
>  }

I thought we agreed this should become

if(spin_is_locked(&pdc_lock))
	spin_unlock(&pdc_lock);

?

James




More information about the parisc-linux-cvs mailing list