| 43 | #define CPU_IVAR_CPUID 4 |
| 44 | |
| 45 | static __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 | |
| 52 | static __inline int32_t cpu_get_nominal_mhz(device_t dev) |
| 53 | { |
no test coverage detected