Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hwpmc/hwpmc_powerpc.c
Show First 20 Lines • Show All 597 Lines • ▼ Show 20 Lines | default: | ||||
break; | break; | ||||
} | } | ||||
if (error != 0) { | if (error != 0) { | ||||
pmc_mdep_free(pmc_mdep); | pmc_mdep_free(pmc_mdep); | ||||
pmc_mdep = NULL; | pmc_mdep = NULL; | ||||
} | } | ||||
/* Set the value for kern.hwpmc.cpuid */ | |||||
mhorne: Worth having a simple comment here, something like `/* Set the value for kern.hwpmc.cpuid */`. | |||||
snprintf(pmc_cpuid, sizeof(pmc_cpuid), "%08lx", mfpvr()); | |||||
return (pmc_mdep); | return (pmc_mdep); | ||||
} | } | ||||
void | void | ||||
pmc_md_finalize(struct pmc_mdep *md) | pmc_md_finalize(struct pmc_mdep *md) | ||||
{ | { | ||||
free(powerpc_pcpu, M_PMC); | free(powerpc_pcpu, M_PMC); | ||||
Show All 35 Lines |
Worth having a simple comment here, something like /* Set the value for kern.hwpmc.cpuid */.