Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2018 16:27:10 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334959 - head/sys/dev/hwpmc
Message-ID:  <201806111627.w5BGRA6g048945@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Mon Jun 11 16:27:09 2018
New Revision: 334959
URL: https://svnweb.freebsd.org/changeset/base/334959

Log:
  Use the cached curthread reference in pmc_process_interrupt().
  
  Fix indentation while here.

Modified:
  head/sys/dev/hwpmc/hwpmc_mod.c

Modified: head/sys/dev/hwpmc/hwpmc_mod.c
==============================================================================
--- head/sys/dev/hwpmc/hwpmc_mod.c	Mon Jun 11 16:26:33 2018	(r334958)
+++ head/sys/dev/hwpmc/hwpmc_mod.c	Mon Jun 11 16:27:09 2018	(r334959)
@@ -4748,9 +4748,9 @@ pmc_process_interrupt(int ring, struct pmc *pm, struct
 
 	td = curthread;
 	if ((pm->pm_flags & PMC_F_USERCALLCHAIN) &&
-        (td->td_proc->p_flag & P_KPROC) == 0 &&
-		!TRAPF_USERMODE(tf)) {
-		atomic_add_int(&curthread->td_pmcpend, 1);
+	    (td->td_proc->p_flag & P_KPROC) == 0 &&
+	    !TRAPF_USERMODE(tf)) {
+		atomic_add_int(&td->td_pmcpend, 1);
 		return (pmc_add_sample(PMC_UR, pm, tf));
 	}
 	return (pmc_add_sample(ring, pm, tf));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806111627.w5BGRA6g048945>