Re: ahci power management

看板DFBSD_submit作者時間16年前 (2009/09/12 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/8 (看更多)
Johannes Hofmann wrote: > In which context are sysctl callbacks run? How would I avoid races > when modifying flags or accessing registers (to disable the PRCE intr > for example)? In the context of the calling thread, with the mp lock held. > Maybe setting flags with with atomic operations and do the real work > in the per port thread? You could send a message to the port thread which in turn does all the work, without changing anything from within the sysctl. cheers simon
文章代碼(AID): #1Agf1lx9 (DFBSD_submit)
文章代碼(AID): #1Agf1lx9 (DFBSD_submit)