File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1916,15 +1916,6 @@ vector<string> current_env() {
19161916 return env;
19171917}
19181918
1919- int get_num_cpus () {
1920- cpu_set_t affinity_mask;
1921- int ret = sched_getaffinity (0 , sizeof (affinity_mask), &affinity_mask);
1922- if (ret < 0 ) {
1923- FATAL () << " sched_getaffinity failed" ;
1924- }
1925- return CPU_COUNT (&affinity_mask);
1926- }
1927-
19281919const uint8_t rdtsc_insn[2 ] = { 0x0f , 0x31 };
19291920
19301921static const uint8_t rdtscp_insn[] = { 0x0f , 0x01 , 0xf9 };
Original file line number Diff line number Diff line change @@ -479,14 +479,6 @@ void good_random(void* out, size_t out_len);
479479
480480std::vector<std::string> current_env ();
481481
482- /* *
483- * Returns the number of CPUs online. This is useful for sizing a thread
484- * pool.
485- * We might see CPUs with an index >= this value, so this is not useful
486- * for comparing with CPU indices.
487- */
488- int get_num_cpus ();
489-
490482enum class SpecialInstOpcode {
491483 NONE,
492484 ARM_MRS_CNTFRQ_EL0,
You can’t perform that action at this time.
0 commit comments