Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_trap.c
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | #endif | ||||
if (td->td_pflags & TDP_GEOM) | if (td->td_pflags & TDP_GEOM) | ||||
g_waitidle(); | g_waitidle(); | ||||
/* | /* | ||||
* Charge system time if profiling. | * Charge system time if profiling. | ||||
*/ | */ | ||||
if (p->p_flag & P_PROFIL) | if (p->p_flag & P_PROFIL) | ||||
addupc_task(td, TRAPF_PC(frame), td->td_pticks * psratio); | addupc_task(td, TRAPF_PC(frame), td->td_pticks * psratio); | ||||
#ifdef HWPMC_HOOKS | |||||
if (PMC_PROC_IS_USING_PMCS(p)) | |||||
PMC_CALL_HOOK(td, PMC_FN_THR_USERRET, NULL); | |||||
#endif | |||||
/* | /* | ||||
* Let the scheduler adjust our priority etc. | * Let the scheduler adjust our priority etc. | ||||
*/ | */ | ||||
sched_userret(td); | sched_userret(td); | ||||
#ifdef XEN | #ifdef XEN | ||||
PT_UPDATES_FLUSH(); | PT_UPDATES_FLUSH(); | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |