Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hwpmc/hwpmc_mips24k.c
Show First 20 Lines • Show All 217 Lines • ▼ Show 20 Lines | config |= (MIPS24K_PMC_SUPER_ENABLE | | ||||
MIPS24K_PMC_KERNEL_ENABLE); | MIPS24K_PMC_KERNEL_ENABLE); | ||||
if (caps & PMC_CAP_USER) | if (caps & PMC_CAP_USER) | ||||
config |= MIPS24K_PMC_USER_ENABLE; | config |= MIPS24K_PMC_USER_ENABLE; | ||||
if ((caps & (PMC_CAP_USER | PMC_CAP_SYSTEM)) == 0) | if ((caps & (PMC_CAP_USER | PMC_CAP_SYSTEM)) == 0) | ||||
config |= MIPS24K_PMC_ENABLE; | config |= MIPS24K_PMC_ENABLE; | ||||
if (caps & PMC_CAP_INTERRUPT) | if (caps & PMC_CAP_INTERRUPT) | ||||
config |= MIPS24K_PMC_INTERRUPT_ENABLE; | config |= MIPS24K_PMC_INTERRUPT_ENABLE; | ||||
PMCDBG(MDP,ALL,2,"mips24k-get_perfctl ri=%d -> config=0x%x", ri, config); | PMCDBG2(MDP,ALL,2,"mips24k-get_perfctl ri=%d -> config=0x%x", ri, config); | ||||
return (config); | return (config); | ||||
} | } |