Re: [PATCH] mmc : Use wait_for_completion_timeout() instead ofwait_for_completion in case of write.

From: Linus Walleij
Date: Wed Sep 21 2011 - 06:48:47 EST


On Sun, Sep 18, 2011 at 5:21 PM, Namjae Jeon <linkinjeon@xxxxxxxxx> wrote:

> +                       timeout_us += mrq->data->timeout_clks * 1000 /
> +                               (mmc_host_clk_rate(host) / 1000);

The math teacher says this is equivalent to:

timeout_us += (mrq->data->timeout_clks / mmc_host_clk_rate) * 1000000 ;

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/