Message ID | 1358254566-12419-6-git-send-email-lee.jones@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Lee, Jonas, On Tue, Jan 15, 2013 at 12:55:45PM +0000, Lee Jones wrote: > From: Jonas Aaberg <jonas.aberg@stericsson.com> > > The resolution of msleep is related to HZ, so with HZ set to > 100 any msleep of less than 10ms will become ~10ms. usleep_range would be more appropriate, sleeping should be preferred over spinning. Cheers, Samuel.
On Mon, 28 Jan 2013, Samuel Ortiz wrote: > Hi Lee, Jonas, > > On Tue, Jan 15, 2013 at 12:55:45PM +0000, Lee Jones wrote: > > From: Jonas Aaberg <jonas.aberg@stericsson.com> > > > > The resolution of msleep is related to HZ, so with HZ set to > > 100 any msleep of less than 10ms will become ~10ms. > usleep_range would be more appropriate, sleeping should be preferred over > spinning. I believe this patch was written before usleep_range() was around. This is addressed in a latter patch. Please allow this one in for a) historical reasons (trying to keep the development history) and b) to prevent any conflicts when we do reach the fixup patch.
diff --git a/drivers/mfd/ab8500-gpadc.c b/drivers/mfd/ab8500-gpadc.c index 29d72a2..3883b93 100644 --- a/drivers/mfd/ab8500-gpadc.c +++ b/drivers/mfd/ab8500-gpadc.c @@ -344,7 +344,7 @@ int ab8500_gpadc_read_raw(struct ab8500_gpadc *gpadc, u8 channel) * Delay might be needed for ABB8500 cut 3.0, if not, remove * when hardware will be available */ - msleep(1); + mdelay(1); break; } /* Intentional fallthrough */