MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bcm_get_pmu

Function bcm_get_pmu

freebsd/mips/broadcom/bcm_pmu.c:90–96  ·  view source on GitHub ↗

* Return the PMU instance, or NULL if no PMU. */

Source from the content-addressed store, hash-verified

88 * Return the PMU instance, or NULL if no PMU.
89 */
90static struct bhnd_pmu_query *
91bcm_get_pmu(struct bcm_platform *bp)
92{
93 if (!bcm_has_pmu(bp))
94 return (NULL);
95 return (&bp->pmu);
96}
97
98/**
99 * Return true if a PMU is available, false otherwise.

Callers 4

bcm_get_alpfreqFunction · 0.85
bcm_get_ilpfreqFunction · 0.85
bcm_get_cpufreqFunction · 0.85
bcm_get_sifreqFunction · 0.85

Calls 1

bcm_has_pmuFunction · 0.85

Tested by

no test coverage detected