Searched refs:CPU_ALLOC (Results 1 – 18 of 18) sorted by relevance
36 cpusetp = CPU_ALLOC(num_cpus); in __sched_cpucount_0100()62 cpusetp = CPU_ALLOC(num_cpus); in __sched_cpucount_0200()88 cpusetp = CPU_ALLOC(num_cpus); in __sched_cpucount_0300()
31 cpu_set_t *set = CPU_ALLOC(max); in sched_setaffinity_0100()
23 #ifndef CPU_ALLOC24 #define CPU_ALLOC(ncpus) malloc(sizeof(cpu_set_t)); \ macro
96 mask = CPU_ALLOC(ncpus); in setup()105 emask = CPU_ALLOC(ncpus + 1); in setup()
82 cpu_set_t *cpus = CPU_ALLOC(ncpus); in tst_ncpus_available()
49 mask = CPU_ALLOC(nrcpus); in do_test()
56 set = CPU_ALLOC(nrcpus); in set_cpu_affinity()
111 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
119 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
125 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
126 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
124 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
112 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
123 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
188 mask = CPU_ALLOC(cpu + 1); in bind_to_current_cpu()
246 #if !defined(CPU_ALLOC) && defined(HAVE_SCHED_SETAFFINITY)7052 cpu_set = CPU_ALLOC(ncpus); in os_sched_setaffinity_impl()7091 newmask = CPU_ALLOC(newncpus); in os_sched_setaffinity_impl()7148 mask = CPU_ALLOC(ncpus); in os_sched_getaffinity_impl()