瀏覽代碼

[etherfabric] Avoid use of sleep() in driver code

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 10 年之前
父節點
當前提交
59bae324c0
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/drivers/net/etherfabric.c

+ 1
- 1
src/drivers/net/etherfabric.c 查看文件

4006
 		 * because we want to use it, or because we're about
4006
 		 * because we want to use it, or because we're about
4007
 		 * to reset the mac anyway
4007
 		 * to reset the mac anyway
4008
 		 */
4008
 		 */
4009
-		sleep ( 2 );
4009
+		mdelay ( 2000 );
4010
 
4010
 
4011
 		if ( ! efab->link_up ) {
4011
 		if ( ! efab->link_up ) {
4012
 			EFAB_ERR ( "!\n" );
4012
 			EFAB_ERR ( "!\n" );

Loading…
取消
儲存