Busy-wait when cold.

Reported by:	gnn, jhb
MFC after:	3 days
This commit is contained in:
Navdeep Parhar
2013-02-06 06:44:42 +00:00
parent 6d62a48f47
commit 0d8158d796
+6 -1
View File
@@ -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