svn commit: r203010 - head/sys/mips/rmi/dev/xlr

Randall Stewart rrs at FreeBSD.org
Tue Jan 26 05:14:50 UTC 2010


Author: rrs
Date: Tue Jan 26 05:14:50 2010
New Revision: 203010
URL: http://svn.freebsd.org/changeset/base/203010

Log:
  1) Make sure static is init'd to 0
  2) In one place make sure we call the backup
     startup routine (from the timer).

Modified:
  head/sys/mips/rmi/dev/xlr/rge.c

Modified: head/sys/mips/rmi/dev/xlr/rge.c
==============================================================================
--- head/sys/mips/rmi/dev/xlr/rge.c	Tue Jan 26 05:11:48 2010	(r203009)
+++ head/sys/mips/rmi/dev/xlr/rge.c	Tue Jan 26 05:14:50 2010	(r203010)
@@ -1686,7 +1686,7 @@ mac_frin_replenish(void *args /* ignored
 #endif
 }
 
-static volatile uint32_t g_tx_frm_tx_ok;
+static volatile uint32_t g_tx_frm_tx_ok=0;
 
 static void
 rge_tx_bkp_func(void *arg, int npending)
@@ -1835,6 +1835,8 @@ xlr_tx_q_wakeup(void *addr)
 			}
 		}
 	}
+	if (atomic_cmpset_int(&g_tx_frm_tx_ok, 0, 1))
+		rge_tx_bkp_func(NULL, 0);
 	callout_reset(&xlr_tx_stop_bkp, 5 * hz, xlr_tx_q_wakeup, NULL);
 }
 


More information about the svn-src-head mailing list