Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: CVS commit: src/sys



   On Sun, Dec 07, 2008 at 11:43:54AM +0000, Andrew Doran wrote:
   > On Sun, Dec 07, 2008 at 11:40:53AM +0000, Andrew Doran wrote:
   > 
   > > Module Name:     src
   > > Committed By:    ad
   > > Date:            Sun Dec  7 11:40:53 UTC 2008
   > > 
   > > Modified Files:
   > >  src/sys/kern: kern_cpu.c
   > >  src/sys/sys: cpu.h
   > 
   > cvs admin "-m1.27:Add cpu_softintr_p() for assertions" cpu.h
   > cvs admin "-m1.39:Add cpu_softintr_p() for assertions" kern_cpu.c
   
   Cool. Does is means that we can use
   (!cpu_intr_p() && !cpu_softintr_p())
   to know if we can tsleep() or not (this would clean up the ATA subsystem)


it was my understanding that cpu_intr_p() was only to be
used in diag/debug code.



.mrg.


Home | Main Index | Thread Index | Old Index