svn commit: r219496 - stable/7/sys/dev/cxgb/ulp/tom
Andriy Gapon
avg at FreeBSD.org
Fri Mar 11 15:53:11 UTC 2011
Author: avg
Date: Fri Mar 11 15:53:11 2011
New Revision: 219496
URL: http://svn.freebsd.org/changeset/base/219496
Log:
MFC r216373: fix incorrect use of atomic_set_xxx in cxgb
Modified:
stable/7/sys/dev/cxgb/ulp/tom/cxgb_tom.c
Directory Properties:
stable/7/sys/ (props changed)
stable/7/sys/cddl/contrib/opensolaris/ (props changed)
stable/7/sys/contrib/dev/acpica/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
Modified: stable/7/sys/dev/cxgb/ulp/tom/cxgb_tom.c
==============================================================================
--- stable/7/sys/dev/cxgb/ulp/tom/cxgb_tom.c Fri Mar 11 15:50:45 2011 (r219495)
+++ stable/7/sys/dev/cxgb/ulp/tom/cxgb_tom.c Fri Mar 11 15:53:11 2011 (r219496)
@@ -240,7 +240,7 @@ init_tid_tabs(struct tid_info *t, unsign
t->atid_base = atid_base;
t->afree = NULL;
t->stids_in_use = t->atids_in_use = 0;
- atomic_set_int(&t->tids_in_use, 0);
+ t->tids_in_use = 0;
mtx_init(&t->stid_lock, "stid", NULL, MTX_DUPOK|MTX_DEF);
mtx_init(&t->atid_lock, "atid", NULL, MTX_DUPOK|MTX_DEF);
More information about the svn-src-stable-7
mailing list