hwpmc(9): clear remaining sample work for hardclock
- fix last minute change in 333509 where by runcount references to a pmc would remaining causing us to pause loop forever Approved by: sbruno
This commit is contained in:
parent
794af7cfdc
commit
d626a614b9
@ -837,7 +837,8 @@ pmclog_schedule_one_cond(void *arg)
|
||||
|
||||
spinlock_enter();
|
||||
/* tell hardclock not to run again */
|
||||
DPCPU_SET(pmc_sampled, 0);
|
||||
if (PMC_CPU_HAS_SAMPLES(PCPU_GET(cpuid)))
|
||||
PMC_CALL_HOOK_UNLOCKED(curthread, PMC_FN_DO_SAMPLES, NULL);
|
||||
plb = po->po_curbuf[curcpu];
|
||||
if (plb && plb->plb_ptr != plb->plb_base)
|
||||
pmclog_schedule_io(po);
|
||||
|
Loading…
Reference in New Issue
Block a user