|
From: <ai...@li...> - 2001-10-10 14:50:09
|
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? 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 |