Skip to content

Commit

Permalink
Code cleanup threadtools.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkallima authored Feb 14, 2024
1 parent 1d95a43 commit c3c8c99
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libconcurrent/primitives/threadtools.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ inline uint32_t synchPreferredNumaNodeOfThread(uint32_t pid) {

if (numa_node_of_cpu(0) == numa_node_of_cpu(ncpus / 2)) { // SMT or HyperThreading detected
uint32_t half_node_size = node_size / 2;
uint32_t ncpus = numa_num_configured_cpus();

if (preferred_core < ncpus / 2)
preferred_node = preferred_core/half_node_size;
Expand Down

0 comments on commit c3c8c99

Please sign in to comment.