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

Function cpu_get_pcpu

freebsd/sys/cpu.h:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43#define CPU_IVAR_CPUID 4
44
45static __inline struct pcpu *cpu_get_pcpu(device_t dev)
46{
47 uintptr_t v = 0;
48 BUS_READ_IVAR(device_get_parent(dev), dev, CPU_IVAR_PCPU, &v);
49 return ((struct pcpu *)v);
50}
51
52static __inline int32_t cpu_get_nominal_mhz(device_t dev)
53{

Callers 10

cpufreq_attachFunction · 0.85
cf_set_methodFunction · 0.85
cf_get_methodFunction · 0.85
cf_levels_methodFunction · 0.85
sysctl_epp_selectFunction · 0.85
set_autonomous_hwpFunction · 0.85
intel_hwpstate_getFunction · 0.85
intel_hwpstate_resumeFunction · 0.85
pn_probeFunction · 0.85

Calls 1

device_get_parentFunction · 0.85

Tested by

no test coverage detected