[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4AAFE78B.6060606@gmail.com>
Date: Tue, 15 Sep 2009 21:14:19 +0200
From: Marcin Slusarz <marcin.slusarz@...il.com>
To: Andreas Mohr <andi@...as.de>
CC: Guennadi Liakhovetski <g.liakhovetski@....de>,
Mauro Carvalho Chehab <mchehab@...radead.org>,
Luca Risolia <luca.risolia@...dio.unibo.it>,
linux-media@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
jirislaby@...il.com
Subject: Re: V4L2 drivers: potentially dangerous and inefficient msecs_to_jiffies()
calculation
Andreas Mohr pisze:
> Hi all,
>
> ./drivers/media/video/sn9c102/sn9c102_core.c
> ,
> ./drivers/media/video/et61x251/et61x251_core.c
> and
> ./drivers/media/video/zc0301/zc0301_core.c
> do
> cam->module_param.frame_timeout *
> 1000 * msecs_to_jiffies(1) );
> multiple times each.
> What they should do instead is
> frame_timeout * msecs_to_jiffies(1000), I'd think.
Or better: frame_timeout * HZ
Marcin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists