Use the cached curthread reference in pmc_process_interrupt().

Fix indentation while here.
This commit is contained in:
Mark Johnston 2018-06-11 16:27:09 +00:00
parent 35555d474b
commit a9336cef39
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334959

View File

@ -4748,9 +4748,9 @@ pmc_process_interrupt(int ring, struct pmc *pm, struct trapframe *tf)
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));