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

Function cpu_get_nominal_mhz

freebsd/sys/cpu.h:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52static __inline int32_t cpu_get_nominal_mhz(device_t dev)
53{
54 uintptr_t v = 0;
55 if (BUS_READ_IVAR(device_get_parent(dev), dev,
56 CPU_IVAR_NOMINAL_MHZ, &v) != 0)
57 return (-1);
58 return ((int32_t)v);
59}
60
61static __inline const uint32_t *cpu_get_cpuid(device_t dev, size_t *count)
62{

Callers 2

cpufreq_attachFunction · 0.85
cf_levels_methodFunction · 0.85

Calls 1

device_get_parentFunction · 0.85

Tested by

no test coverage detected