From bc695a5ac1d7929e5c1ad5297eb47e146cccd157 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 23 Feb 2023 10:10:44 -0500 Subject: [PATCH] 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). --- include/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sched.h b/include/sched.h index fda4b484..204c34f5 100644 --- a/include/sched.h +++ b/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)