staging: dgnc: replace usleep_range with udelay
authorAishwarya Pant <aishpant@gmail.com>
Wed, 1 Mar 2017 12:36:30 +0000 (18:06 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Mar 2017 06:37:01 +0000 (07:37 +0100)
commit105d3b970b74d422b3af312f6f8edc7208cc8702
treeec1183d64ba3608731a50731e98ef84510716de3
parent541e68e0c3d0be9a940632edc5181788fff11d88
staging: dgnc: replace usleep_range with udelay

udelay is impelmented using a busy-wait loop and consumes CPU cycles
while usleep_range is implemented using interrupts.cls_flush_uart_write()
is called after a channel lock is acquired i.e. an atomic context.
Hence delay in this method should use udelay instead of usleep_range.

Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_cls.c