Просмотр исходного кода

fix incorrect unit for CPU_SETSIZE macro

this macro is supposed to reflect the number of members (bits) in
cpu_set_t, not the storage size (bytes).
Rich Felker 2 лет назад
Родитель
Сommit
bc695a5ac1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      include/sched.h

+ 1 - 1
include/sched.h

@@ -124,7 +124,7 @@ __CPU_op_func_S(XOR, ^)
 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
 #define CPU_FREE(set) free(set)
 
-#define CPU_SETSIZE 128
+#define CPU_SETSIZE 1024
 
 #define CPU_SET(i, set) CPU_SET_S(i,sizeof(cpu_set_t),set)
 #define CPU_CLR(i, set) CPU_CLR_S(i,sizeof(cpu_set_t),set)