aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Chu <david.chu@mediatek.com>2016-05-19 12:29:10 -0700
committerMister Oyster <oysterized@gmail.com>2017-04-11 11:00:06 +0200
commit327390d53d4028d59e2f734aafb09fff9e7aa05b (patch)
tree046d91402277ba4d3619ad59f625c40d94dc0a9b
parent0b225d3a079571b3a1324e376f5ef7ea6ec2de4a (diff)
A2DP performance improvement.
Replaced busy udelay loop with usleep_range to reduce CPU usage in stp_sdio_tx_rx. Bug: 27713674
-rw-r--r--drivers/misc/mediatek/connectivity/combo/common/linux/stp_sdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/mediatek/connectivity/combo/common/linux/stp_sdio.c b/drivers/misc/mediatek/connectivity/combo/common/linux/stp_sdio.c
index 8b488183c..ed06c3f1b 100644
--- a/drivers/misc/mediatek/connectivity/combo/common/linux/stp_sdio.c
+++ b/drivers/misc/mediatek/connectivity/combo/common/linux/stp_sdio.c
@@ -503,13 +503,13 @@ static INT32 stp_sdio_do_own_clr(INT32 wait)
if ((chlcpr_value & C_FW_COM_DRV_OWN) == C_FW_COM_DRV_OWN) {
//4 <2> handle ownership back interrupt
STPSDIO_DBG_FUNC("firmware ownback is polled!(%d)\n", CLR_OWN_RETRY - retry);
- udelay(2000);
+ usleep_range(2000,2000);
break;
} else {
STPSDIO_DBG_FUNC
("firmware ownback is no polled, wait for (%d us) and retry\n",
delay_us);
- udelay(delay_us);
+ usleep_range(delay_us,delay_us);
}
}
while (retry-- > 0);