Commit fc6df5b0 authored by Vikram Narayanan's avatar Vikram Narayanan

lcd/ixgbe: Add usleep range

In the native kernel, usleep_range leans on the hrtimer interface. As we don't
have any timer support inside LCDs, make this api perform an udelay instead.
Both usleep_range and msleep needs to be fixed in the future
Signed-off-by: Vikram Narayanan's avatarVikram Narayanan <vikram186@gmail.com>
parent 77e9b9cb
......@@ -26,10 +26,6 @@ bool cancel_work_sync(struct work_struct *work) { return true; }
int rtnl_is_locked(void) { return 0; }
void usleep_range(unsigned long min, unsigned long max)
{
}
void synchronize_irq(unsigned int irq) { }
int mdio45_probe(struct mdio_if_info *mdio, int prtad) { return 0; }
......@@ -188,4 +184,9 @@ void __udelay(unsigned long usecs)
__const_udelay(usecs * 0x000010c7); /* 2**32 / 1000000 (rounded up) */
}
void usleep_range(unsigned long min, unsigned long max)
{
udelay((max + min) >> 1);
}
#endif /* IXGBE_STUB_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment