From 8e379daa487741af8eab4880831f6d1bab9f732f Mon Sep 17 00:00:00 2001 From: Zhang Jiejing Date: Mon, 29 Oct 2012 17:45:23 +0800 Subject: ENGR00231492 Android: MMC: remove sdhci async support to reduce sync() latency. The sdhci async mmc coomand support will batch too much write command, it will cause the thread call sync() become very slow, it will cause the sqlite operation become very slow. This patch will improve the latency of sqlite operation a lot, one test case, without this patch, the async() will wait for 6 write command, and with this patch, it only wait for one write command, in a slow SD card, the different will be 3000ms vs 500ms. Since this async() function not improve performance a lot for fast card(eMMC), but it will affect too much for slow card like TF card, remove this function. Signed-off-by: Zhang Jiejing --- drivers/mmc/host/sdhci.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers') diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index ba625b3ca376..4ed551e3c795 100755 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1942,8 +1942,6 @@ static void sdhci_pre_req(struct mmc_host *mmc, struct mmc_request *mrq, static const struct mmc_host_ops sdhci_ops = { .request = sdhci_request, - .post_req = sdhci_post_req, - .pre_req = sdhci_pre_req, .set_ios = sdhci_set_ios, .get_ro = sdhci_get_ro, .enable_sdio_irq = sdhci_enable_sdio_irq, -- cgit v1.2.3