Re: [PATCH v2] Staging: dgnc: dgnc_*.c: Use usleep_range over udelay to improve coalescing processor wakeups

2016-12-06 Thread Shiva Kerdel
On Tue, Dec 06, 2016 at 09:59:58AM +0100, Shiva Kerdel wrote: In most cases, usleep_range is better than udelay, as the precise wakeup from udelay is unnecessary. But, udelay does something different than usleep, are you sure you should be giving up the cpu at this point in time? Are you

Re: [PATCH v2] Staging: dgnc: dgnc_*.c: Use usleep_range over udelay to improve coalescing processor wakeups

2016-12-06 Thread Greg KH
On Tue, Dec 06, 2016 at 09:59:58AM +0100, Shiva Kerdel wrote: > In most cases, usleep_range is better than udelay, as the precise wakeup > from udelay is unnecessary. But, udelay does something different than usleep, are you sure you should be giving up the cpu at this point in time? Are you

[PATCH v2] Staging: dgnc: dgnc_*.c: Use usleep_range over udelay to improve coalescing processor wakeups

2016-12-06 Thread Shiva Kerdel
In most cases, usleep_range is better than udelay, as the precise wakeup from udelay is unnecessary. usleep_range gives a much better chance of coalescing processor wakeups. Signed-off-by: Shiva Kerdel --- Changes for v2: - Squashed the two commits to one patch.