svn commit: r334959 - head/sys/dev/hwpmc
Mark Johnston
markj at FreeBSD.org
Mon Jun 11 16:27:11 UTC 2018
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));
More information about the svn-src-all
mailing list