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
This commit is contained in:
Andriy Gapon 2010-12-11 10:14:08 +00:00
parent 914e11a72b
commit 5579e006db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216373

View File

@ -269,7 +269,7 @@ init_tid_tabs(struct tid_info *t, unsigned int ntids,
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);