Date: Sun, 30 Nov 2008 05:10:14 +0000 (UTC) From: Joseph Koshy <jkoshy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185465 - head/sys/dev/hwpmc Message-ID: <200811300510.mAU5AEP9072678@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkoshy Date: Sun Nov 30 05:10:14 2008 New Revision: 185465 URL: http://svn.freebsd.org/changeset/base/185465 Log: Improve a comment. Modified: head/sys/dev/hwpmc/hwpmc_logging.c Modified: head/sys/dev/hwpmc/hwpmc_logging.c ============================================================================== --- head/sys/dev/hwpmc/hwpmc_logging.c Sun Nov 30 04:44:46 2008 (r185464) +++ head/sys/dev/hwpmc/hwpmc_logging.c Sun Nov 30 05:10:14 2008 (r185465) @@ -281,15 +281,18 @@ pmclog_loop(void *arg) if ((lb = TAILQ_FIRST(&po->po_logbuffers)) == NULL) { mtx_unlock_spin(&po->po_mtx); - /* wakeup any processes waiting for a FLUSH */ + /* + * Wakeup the thread waiting for the + * PMC_OP_FLUSHLOG request to + * complete. + */ if (po->po_flags & PMC_PO_IN_FLUSH) { po->po_flags &= ~PMC_PO_IN_FLUSH; wakeup_one(po->po_kthread); } - - (void) msleep(po, &pmc_kthread_mtx, - PWAIT, "pmcloop", 0); + (void) msleep(po, &pmc_kthread_mtx, PWAIT, + "pmcloop", 0); continue; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811300510.mAU5AEP9072678>