Date: Fri, 11 Mar 2011 15:50:45 +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-8@freebsd.org Subject: svn commit: r219495 - stable/8/sys/dev/cxgb/ulp/tom Message-ID: <201103111550.p2BFojOe084783@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Fri Mar 11 15:50:45 2011 New Revision: 219495 URL: http://svn.freebsd.org/changeset/base/219495 Log: MFC r216373: fix incorrect use of atomic_set_xxx in cxgb Modified: stable/8/sys/dev/cxgb/ulp/tom/cxgb_tom.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/dev/cxgb/ulp/tom/cxgb_tom.c ============================================================================== --- stable/8/sys/dev/cxgb/ulp/tom/cxgb_tom.c Fri Mar 11 15:38:42 2011 (r219494) +++ stable/8/sys/dev/cxgb/ulp/tom/cxgb_tom.c Fri Mar 11 15:50:45 2011 (r219495) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103111550.p2BFojOe084783>