瀏覽代碼

usb: musb: cppi41: do not call udelay()

according to comment in code, HS completion
will happen pretty fast, instead of using
udelay(), let's just busy loop and drop a
cpu_relax() where udelay() was.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi 10 年之前
父節點
當前提交
043f5b75dd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/usb/musb/musb_cppi41.c

+ 1 - 1
drivers/usb/musb/musb_cppi41.c

@@ -287,7 +287,7 @@ static void cppi41_dma_callback(void *private_data)
 			wait--;
 			wait--;
 			if (!wait)
 			if (!wait)
 				break;
 				break;
-			udelay(1);
+			cpu_relax();
 		} while (1);
 		} while (1);
 	}
 	}
 	list_add_tail(&cppi41_channel->tx_check,
 	list_add_tail(&cppi41_channel->tx_check,