On Tue, Mar 3, 2009 at 3:35 AM, Guzman Lugo, Fernando <[email protected]> wrote:
> From db89674b7316d7490e71c131091758eb7ef0eca2 Mon Sep 17 00:00:00 2001
> From: Fernando Guzman Lugo <[email protected]>
> Date: Wed, 25 Feb 2009 19:27:41 -0600
> Subject: [PATCH] DSPBRIDGE: Remove unnecessary checks in HW_MBOX_IsFull
> function
>
> This patch removes some unnecesarry checks in HW_MBOX_IsFull
> function
Is that all this patch is doing?
> - u16 cnt = 10;
> + u16 cnt = 1000;
> - while (--cnt) {
> - hwStatus = HW_MBOX_IsFull(resources.dwMboxBase,
> - MBOX_ARM2DSP, &mbxFull);
> - if (mbxFull)
> - UTIL_Wait(1000); /* wait for 1 ms) */
> - else
> - break;
> - }
> + while (--cnt && HW_MBOX_IsFull(resources.dwMboxBase, MBOX_ARM2DSP))
> + udelay(1);
> +
--
Felipe Contreras
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html