Author: avg
Date: Sat Dec 11 10:14:08 2010
New Revision: 216373
URL: http://svn.freebsd.org/changeset/base/216373
Log:
fix incorrect use of atomic_set_xxx in cxgb
There is no need to use an atomic operation at structure initialization
time.
Note that the file changed is not connected to the build at this time.
Reviewed by: jhb (general issue)
Approved by: np
MFC after: 2 weeks
Modified:
head/sys/dev/cxgb/ulp/tom/cxgb_tom.c
Modified: head/sys/dev/cxgb/ulp/tom/cxgb_tom.c
==============================================================================
--- head/sys/dev/cxgb/ulp/tom/cxgb_tom.c Sat Dec 11 09:38:12 2010
(r216372)
+++ head/sys/dev/cxgb/ulp/tom/cxgb_tom.c Sat Dec 11 10:14:08 2010
(r216373)
@@ -269,7 +269,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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"