Explorar el Código

fix missing ref to former_process_affinity

Samuel Thibault hace 14 años
padre
commit
3a9cbb4c57
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/perfmodel/perfmodel_bus.c

+ 1 - 1
src/core/perfmodel/perfmodel_bus.c

@@ -425,7 +425,7 @@ static void benchmark_all_gpu_devices(void)
 #endif
 
 	/* FIXME: use hwloc */
-#ifndef __MINGW32__
+#ifdef __linux__
 	/* Restore the former affinity */
 	ret = sched_setaffinity(0, sizeof(former_process_affinity), &former_process_affinity);
 	if (ret)