diff options
author | Navdeep Parhar <np@FreeBSD.org> | 2013-02-06 06:44:42 +0000 |
---|---|---|
committer | Navdeep Parhar <np@FreeBSD.org> | 2013-02-06 06:44:42 +0000 |
commit | 0d8158d7964657c2580e81e0bc1b9be253286a45 (patch) | |
tree | c50563c82ee80fd403b7fc213ba963d7fc732c9e /sys/dev | |
parent | 6d62a48f47f271f1c1a9d41ad8481c37541b4f65 (diff) | |
download | src-0d8158d7964657c2580e81e0bc1b9be253286a45.tar.gz src-0d8158d7964657c2580e81e0bc1b9be253286a45.zip |
Busy-wait when cold.
Reported by: gnn, jhb
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=246385
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/cxgbe/common/t4_hw.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/common/t4_hw.c b/sys/dev/cxgbe/common/t4_hw.c index 902a4e85c6be..099f5a9005fb 100644 --- a/sys/dev/cxgbe/common/t4_hw.c +++ b/sys/dev/cxgbe/common/t4_hw.c @@ -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 |