From ca243131657ba03f58206a417b938aa14cff585c Mon Sep 17 00:00:00 2001 From: Feng Tian Date: Mon, 24 Jun 2013 03:03:55 +0000 Subject: MdeModulePkg/Usb: Boost the r/w performance by reducing stall time on polling cmd execution status Signed-off-by: Feng Tian Reviewed-by: Star Zeng Reviewed-by: Elvin Li git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14442 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c') diff --git a/MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c b/MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c index 0d97bccab..af3f4e5ec 100644 --- a/MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c +++ b/MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c @@ -2,7 +2,7 @@ The EHCI register operation routines. -Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.
+Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -580,7 +580,7 @@ UhciExecuteTransfer ( Finished = FALSE; Status = EFI_SUCCESS; - Delay = (TimeOut * UHC_1_MILLISECOND / UHC_SYNC_POLL_INTERVAL) + 1; + Delay = TimeOut * UHC_1_MILLISECOND; InfiniteLoop = FALSE; // @@ -602,7 +602,7 @@ UhciExecuteTransfer ( break; } - gBS->Stall (UHC_SYNC_POLL_INTERVAL); + gBS->Stall (UHC_1_MICROSECOND); } if (!Finished) { -- cgit v1.2.3