Lines Matching refs:cpu_map
66 unsigned long *cpu_map; member
506 if (cpu >= pdi->cpu_map_max || !pdi->cpu_map) { in cpu_mark_online()
512 if (pdi->cpu_map) { in cpu_mark_online()
513 memcpy(map, pdi->cpu_map, pdi->cpu_map_max / sizeof(long)); in cpu_mark_online()
514 free(pdi->cpu_map); in cpu_mark_online()
517 pdi->cpu_map = map; in cpu_mark_online()
521 pdi->cpu_map[CPU_IDX(cpu)] |= (1UL << CPU_BIT(cpu)); in cpu_mark_online()
526 pdi->cpu_map[CPU_IDX(cpu)] &= ~(1UL << CPU_BIT(cpu)); in cpu_mark_offline()
531 return (pdi->cpu_map[CPU_IDX(cpu)] & (1UL << CPU_BIT(cpu))) != 0; in cpu_is_online()
1955 unsigned long *cpu_map; in check_cpu_map() local
1964 cpu_map = malloc(pdi->cpu_map_max / sizeof(long)); in check_cpu_map()
1970 cpu_map[CPU_IDX(cpu)] |= (1UL << CPU_BIT(cpu)); in check_cpu_map()
1980 if (pdi->cpu_map[i] & ~(cpu_map[i])) { in check_cpu_map()
1986 free(cpu_map); in check_cpu_map()