Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hwpmc/hwpmc_octeon.c
Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | if ((caps & (PMC_CAP_USER | PMC_CAP_SYSTEM)) == 0) { | ||||
control.s.s = 1; | control.s.s = 1; | ||||
control.s.u = 1; | control.s.u = 1; | ||||
control.s.ex = 1; | control.s.ex = 1; | ||||
} | } | ||||
if (caps & PMC_CAP_INTERRUPT) | if (caps & PMC_CAP_INTERRUPT) | ||||
control.s.ie = 1; | control.s.ie = 1; | ||||
PMCDBG(MDP,ALL,2,"mips-allocate ri=%d -> config=0x%x", ri, control.u32); | PMCDBG2(MDP,ALL,2,"mips-allocate ri=%d -> config=0x%x", ri, | ||||
control.u32); | |||||
return (control.u32); | return (control.u32); | ||||
} | } |