Skip to content

Commit 527e6d2

Browse files
committed
remove CPU_EQUAL optimization on FreeBSD
Change-Id: I77e0099cfcbcd366a4899dc072bc358409d01f66
1 parent d082f2f commit 527e6d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cpucounters.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,12 @@ class TemporalThreadAffinity // speedup trick for Linux, FreeBSD, DragonFlyBSD,
232232
cpu_set_t new_affinity;
233233
CPU_ZERO(&new_affinity);
234234
CPU_SET(core_id, &new_affinity);
235-
if (CPU_EQUAL(&old_affinity, &new_affinity))
235+
/* TODO: use CPU_CMP
236+
if (CPU_EQUAL(&old_affinity, &new_affinity))
236237
{
237238
return;
238239
}
240+
*/
239241
res = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &new_affinity);
240242
if (res != 0 && checkStatus)
241243
{

0 commit comments

Comments
 (0)