Date: Fri, 11 Mar 2011 15:53:11 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r219496 - stable/7/sys/dev/cxgb/ulp/tom Message-ID: <201103111553.p2BFrBpj084878@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103111553.p2BFrBpj084878>