> -----Original Message----- > From: Alexey Klimov [mailto:klimov.li...@gmail.com] > Sent: Thursday, March 05, 2009 4:05 PM > To: Curran, Dominic > Cc: DongSoo(Nathaniel) Kim; Aguirre Rodriguez, Sergio Alberto; linux- > me...@vger.kernel.org; linux-omap@vger.kernel.org; Sakari Ailus; Tuukka.O > Toivonen; Hiroshi DOYU; MiaoStanley; Nagalla, Hari; Hiremath, Vaibhav; > Lakhani, Amish; Menon, Nishanth > Subject: Re: [PATCH 4/5] OMAP3430SDP: Add support for Camera Kit v3 > > >> > + /* out of standby */ > >> > + gpio_set_value(MT9P012_STANDBY_GPIO, 0); > >> > + udelay(1000); > >> > >> It seems better using msleep rather than udelay for 1000us much. Just > >> to be safe :) > >> How about you? > >> > > > > Why is msleep safer than udelay ? > > I have small guess that he is wondering why you are using big delays > with help of udelay(). (It's may be obvious but as we know udelay uses > cpu loops to make delay and msleep calls to scheduler) So, msleep is > more flexible and "softer" but if you need precise time or you can't > sleep in code you need udelay. Sometimes using udelay is reasonably > required. >
Ah, I did not know that msleep() called scheduler. Thank you. -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html