svn commit: r246385 - head/sys/dev/cxgbe/common
Navdeep Parhar
np at FreeBSD.org
Wed Feb 6 06:44:43 UTC 2013
Author: np
Date: Wed Feb 6 06:44:42 2013
New Revision: 246385
URL: http://svnweb.freebsd.org/changeset/base/246385
Log:
Busy-wait when cold.
Reported by: gnn, jhb
MFC after: 3 days
Modified:
head/sys/dev/cxgbe/common/t4_hw.c
Modified: head/sys/dev/cxgbe/common/t4_hw.c
==============================================================================
--- head/sys/dev/cxgbe/common/t4_hw.c Wed Feb 6 04:53:00 2013 (r246384)
+++ head/sys/dev/cxgbe/common/t4_hw.c Wed Feb 6 06:44:42 2013 (r246385)
@@ -35,7 +35,12 @@ __FBSDID("$FreeBSD$");
#include "firmware/t4fw_interface.h"
#undef msleep
-#define msleep(x) pause("t4hw", (x) * hz / 1000)
+#define msleep(x) do { \
+ if (cold) \
+ DELAY((x) * 1000); \
+ else \
+ pause("t4hw", (x) * hz / 1000); \
+} while (0)
/**
* t4_wait_op_done_val - wait until an operation is completed
More information about the svn-src-all
mailing list