No subject


Thu Jun 25 05:52:11 EDT 2020


 SLEEPING FOR ~USECS OR SMALL MSECS ( 10us - 20ms):
         * Use usleep_range

 SLEEPING FOR LARGER MSECS ( 10ms+ )
        * Use msleep or possibly msleep_interruptible

So you probably want:

 if (msec > 20)
	msleep(msec);
 else
	usleep_range(msec * 1000, msec * 1000 + 1000);

-- ynezz

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list