Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Feb 2013 06:44:42 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r246385 - head/sys/dev/cxgbe/common
Message-ID:  <201302060644.r166igaM011339@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302060644.r166igaM011339>