svn commit: r210582 - projects/ofed/head/sys/ofed/include/linux
Jeff Roberson
jeff at FreeBSD.org
Thu Jul 29 02:08:49 UTC 2010
Author: jeff
Date: Thu Jul 29 02:08:48 2010
New Revision: 210582
URL: http://svn.freebsd.org/changeset/base/210582
Log:
- Add a linux compatible msleep.
Sponsored by: Isilon Systems, iX Systems, and Panasas.
Modified:
projects/ofed/head/sys/ofed/include/linux/delay.h
Modified: projects/ofed/head/sys/ofed/include/linux/delay.h
==============================================================================
--- projects/ofed/head/sys/ofed/include/linux/delay.h Thu Jul 29 02:08:21 2010 (r210581)
+++ projects/ofed/head/sys/ofed/include/linux/delay.h Thu Jul 29 02:08:48 2010 (r210582)
@@ -25,3 +25,19 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+#ifndef _LINUX_DELAY_H_
+#define _LINUX_DELAY_H_
+
+#include <linux/jiffies.h>
+
+static inline void
+linux_msleep(int ms)
+{
+ pause("lnxsleep", msecs_to_jiffies(ms));
+}
+
+#undef msleep
+#define msleep linux_msleep
+
+#endif /* _LINUX_DELAY_H_ */
More information about the svn-src-projects
mailing list