Use the cached curthread reference in pmc_process_interrupt().
Fix indentation while here.
This commit is contained in:
parent
35555d474b
commit
a9336cef39
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334959
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user