[PATCH 3/4] add delay when entering cmd mode
laforge at openmoko.org
Wed Dec 19 18:57:57 CET 2007
On Wed, Dec 19, 2007 at 02:08:14PM -0300, Werner Almesberger wrote:
> Chia-I Wu wrote:
> > + msleep(90);
> Hmm, such a long msleep isn't so nice. How about this ?
Mh, I don't really understand this. it's msleep, not mdelay!
msleep very much schedules the current task away, without any
> This will wait at least 90ms, without keeping the CPU busy.
void msleep(unsigned int msecs)
unsigned long timeout = msecs_to_jiffies(msecs) + 1;
timeout = schedule_timeout_uninterruptible(timeout);
- Harald Welte <laforge at openmoko.org> http://openmoko.org/
Software for the world's first truly open Free Software mobile phone
More information about the openmoko-kernel