MAX_CPUS
static struct powerdomain *mpu_pd, *cpu_pd[MAX_CPUS];
static struct clockdomain *cpu_clkdm[MAX_CPUS];
static bool cpu_done[MAX_CPUS];
} delay[MAX_CPUS];
struct be_set_eqd set_eqd[MAX_CPUS];
char *msi_name[MAX_CPUS];
struct be_aic_obj aic_obj[MAX_CPUS];
struct be_eq_obj be_eq[MAX_CPUS];
struct be_queue_info be_cq[MAX_CPUS - 1];
char cpumask[100+6*MAX_CPUS];
char cpumask[100+6*MAX_CPUS];
BUG_ON(cpu >= MAX_CPUS || cpu < 0);
BUG_ON(cpu >= MAX_CPUS || cpu < 0);
DECLARE_BITMAP(comp_cpus_mask, MAX_CPUS);
BUG_ON(this_cpu.cpu >= MAX_CPUS || this_cpu.cpu < 0);
cpus_nr = bitmap_weight(sched->map.comp_cpus_mask, MAX_CPUS);
sched->cpu_last_switched = calloc(MAX_CPUS, sizeof(*(sched->cpu_last_switched)));
sched->curr_pid = malloc(MAX_CPUS * sizeof(*(sched->curr_pid)));
for (i = 0; i < MAX_CPUS; i++)
sched->curr_thread = calloc(MAX_CPUS, sizeof(*(sched->curr_thread)));
sched->curr_out_thread = calloc(MAX_CPUS, sizeof(*(sched->curr_out_thread)));
for (int i = 0; i < MAX_CPUS; i++)
for (int i = 0; i < MAX_CPUS; i++)
if (cpu >= MAX_CPUS || cpu < 0)
cpus_cstate_start_times = calloc(MAX_CPUS, sizeof(*cpus_cstate_start_times));
cpus_cstate_state = calloc(MAX_CPUS, sizeof(*cpus_cstate_state));
cpus_pstate_start_times = calloc(MAX_CPUS, sizeof(*cpus_pstate_start_times));
cpus_pstate_state = calloc(MAX_CPUS, sizeof(*cpus_pstate_state));
__uint(max_entries, MAX_CPUS);
for (int i = 0; i < MAX_CPUS; i++) {
__uint(max_entries, MAX_CPUS);
ncpus = env->nr_cpus_avail ?: MAX_CPUS;
struct counter hits[MAX_CPUS];
cpus_online = MIN(MAX_CPUS, sysconf(_SC_NPROCESSORS_ONLN));
} while (next_option && num_cpus_to_pin < MAX_CPUS);
int cpus_to_pin[MAX_CPUS];
pthread_t cpu_threads[MAX_CPUS];
int max_cpus = MAX_CPUS;
if (test_ctx->nr_cpus > MAX_CPUS)
test_ctx->nr_cpus = MAX_CPUS;
long loaded_bw[MAX_CPUS];
long unloaded_bw[MAX_CPUS];
long baseline_bw[MAX_CPUS];
pthread_t rw_thread_per_cpu[MAX_CPUS];
} else if (nr_cpus > MAX_CPUS) {
pr_err("Exceed max cpus(%d)\n", (int)MAX_CPUS);
struct rw_thread_info *rw_ti[MAX_CPUS];