All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fernando Guzman Lugo <x0095840@ti.com>
To: leed.aguilar@ti.com, vikram.pandita@ti.com, h-kanigeri2@ti.com,
	linux-omap@vger.kernel.org
Cc: Fernando Guzman Lugo <x0095840@ti.com>,
	Felipe Contreras <felipe.contreras@nokia.com>
Subject: [PATCH] DSPBRIDGE: wait less and check the mailbox more.
Date: Wed,  4 Mar 2009 12:11:36 -0600	[thread overview]
Message-ID: <1236190296-21667-6-git-send-email-x0095840@ti.com> (raw)
In-Reply-To: <1236190296-21667-5-git-send-email-x0095840@ti.com>

Performance is increased if we wait less and check the mailbox more when it's
full.

Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
---
 drivers/dsp/bridge/wmd/tiomap_sm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/dsp/bridge/wmd/tiomap_sm.c b/drivers/dsp/bridge/wmd/tiomap_sm.c
index f8496cf..2843788
--- a/drivers/dsp/bridge/wmd/tiomap_sm.c
+++ b/drivers/dsp/bridge/wmd/tiomap_sm.c
@@ -179,7 +179,7 @@ DSP_STATUS CHNLSM_InterruptDSP(struct WMD_DEV_CONTEXT *hDevContext)
 #endif
 	HW_STATUS hwStatus;
 	struct CFG_HOSTRES resources;
-	u16 cnt = 10;
+	u16 cnt = 1000;
 	u32 temp;
 	/* We are waiting indefinitely here. This needs to be fixed in the
 	 * second phase */
@@ -241,7 +241,7 @@ DSP_STATUS CHNLSM_InterruptDSP(struct WMD_DEV_CONTEXT *hDevContext)
 		pDevContext->dwBrdState = BRD_RUNNING;
 	}
 	while (--cnt && HW_MBOX_IsFull(resources.dwMboxBase, MBOX_ARM2DSP))
-		mdelay(1);
+		udelay(1);
 
 	if (!cnt) {
 		DBG_Trace(DBG_LEVEL7, "Timed out waiting for DSP mailbox \n");
-- 
1.5.6.4


  reply	other threads:[~2009-03-04 18:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-04 18:11 [PATCH] DSPBRIDGE: Remove SEEK_* redefinitions Fernando Guzman Lugo
2009-03-04 18:11 ` [PATCH] DSPBRIDGE: Removes wrappers funtions of readl and writel Fernando Guzman Lugo
2009-03-04 18:11   ` [PATCH] DSPBRIDGE: Change address resources to void __iomem * Fernando Guzman Lugo
2009-03-04 18:11     ` [PATCH] DSPBRIDGE: Remove variables not used in cfgdefs.h Fernando Guzman Lugo
2009-03-04 18:11       ` [PATCH] DSPBRIDGE: cleanup of HW_MBOX_IsFull function Fernando Guzman Lugo
2009-03-04 18:11         ` Fernando Guzman Lugo [this message]
2009-03-05 10:14       ` [PATCH] DSPBRIDGE: Remove variables not used in cfgdefs.h Ameya Palande
2009-03-05 10:22     ` [PATCH] DSPBRIDGE: Change address resources to void __iomem * Ameya Palande
  -- strict thread matches above, loose matches on Subject: below --
2009-02-20 23:04 [PATCH] dspbridge: wait less and check the mailbox more Felipe Contreras
2009-02-22  5:21 ` Hiroshi DOYU
2009-02-22  6:46   ` Felipe Contreras

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1236190296-21667-6-git-send-email-x0095840@ti.com \
    --to=x0095840@ti.com \
    --cc=felipe.contreras@nokia.com \
    --cc=h-kanigeri2@ti.com \
    --cc=leed.aguilar@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=vikram.pandita@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.