Searched refs:cpuspeed (Results 1 – 5 of 5) sorted by relevance
/third_party/libuv/src/unix/ |
D | haiku.c | 119 uint64_t cpuspeed; in uv_cpu_info() local 139 cpuspeed = 0; in uv_cpu_info() 142 cpuspeed = topology_infos[i].data.core.default_frequency; in uv_cpu_info() 161 cpu_info->speed = (int)(cpuspeed / 1000000); in uv_cpu_info()
|
D | netbsd.c | 187 u_int64_t cpuspeed; in uv_cpu_info() local 204 size = sizeof(cpuspeed); in uv_cpu_info() 205 if (sysctlbyname("machdep.tsc_freq", &cpuspeed, &size, NULL, 0)) in uv_cpu_info() 206 cpuspeed = 0; in uv_cpu_info() 231 cpu_info->speed = (int)(cpuspeed/(uint64_t) 1e6); in uv_cpu_info()
|
D | freebsd.c | 174 multiplier = ((uint64_t)1000L / ticks), cpuspeed, maxcpus, in uv_cpu_info() local 201 cpuspeed = 0; in uv_cpu_info() 205 size = sizeof(cpuspeed); in uv_cpu_info() 206 if (sysctlbyname("hw.clockrate", &cpuspeed, &size, NULL, 0)) in uv_cpu_info() 257 cpu_info->speed = cpuspeed; in uv_cpu_info()
|
D | openbsd.c | 181 multiplier = ((uint64_t)1000L / ticks), cpuspeed; in uv_cpu_info() local 208 size = sizeof(cpuspeed); in uv_cpu_info() 209 if (sysctl(which, ARRAY_SIZE(which), &cpuspeed, &size, NULL, 0)) in uv_cpu_info() 227 cpu_info->speed = cpuspeed; in uv_cpu_info()
|
D | darwin.c | 337 uint64_t cpuspeed; in uv_cpu_info() local 346 err = uv__get_cpu_speed(&cpuspeed); in uv_cpu_info() 374 cpu_info->speed = cpuspeed/1000000; in uv_cpu_info()
|