[alsa-devel] [PATCH 2/2] ASoC: wm8996: ensure lower bounds of 1 for timeout
Charles Keepax
ckeepax at opensource.wolfsonmicro.com
Mon Mar 9 15:27:37 CET 2015
On Sun, Mar 08, 2015 at 06:02:38AM -0400, Nicholas Mc Guire wrote:
> wait_for_completion_timeout can be called with timeout == 0 due to
> msecs_to_jiffies(2) == 1 for HZ < 1000 and usecs_to_jiffies(300) == 1
> for all reasonable values of HZ, thus the following timeout /= 2; sets
> timeout to 0. This patch simply adds a lower-bounds of 1.
>
> Signed-off-by: Nicholas Mc Guire <hofrat at osadl.org>
> ---
Acked-by: Charles Keepax <ckeepax at opensource.wolfsonmicro.com>
Thanks,
Charles
More information about the Alsa-devel
mailing list