Date: Tue, 26 Jan 2010 05:14:50 +0000 (UTC) From: Randall Stewart <rrs@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r203010 - head/sys/mips/rmi/dev/xlr Message-ID: <201001260514.o0Q5EoVg087688@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001260514.o0Q5EoVg087688>