|
From: Chris R. <chr...@br...> - 2001-10-10 15:00:45
|
ai...@li... wrote: > > Yet more Q: > When ATA driver resets the interface it should poll it for positive status > for 31 seconds. There is no interrupt at the end of reset. > Stupid endless reading of status register until timeout expires seems bad > implementation for me, because lagre amount of CPU time (up to 31 second! ) > will be wasted on execution of high-priority thread. > Is there any good way to implement this? Why not take a simple aproach; init ATA sleep(31) check status register. > Maybe driver initialization thread can lower its priority and enter this > loop, then restore priority at the end? This way we can save some CPU time > (not a big gain, but it's better than nothing). > > Any ideas on this are welcome. > Igor -- Chris. |