| cpu_topology_node_info *topology; | |
| system_info systemInfo; | |
| uint32_t count = 1; | |
| get_system_info(&systemInfo); | |
| get_cpu_topology_info(NULL, &count); | |
| topology = new cpu_topology_node_info[count]; | |
| get_cpu_topology_info(topology, count); | |
| for (uint32 i = 0; i < count; i++) { | |
| if (topology[i].type == B_TOPOLOGY_CORE) { | |
| cpu_clock_speed = topology[i].data.core.default_frequency; | |
| break; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment