Lines Matching defs:sp
39 static int map_fill_strand(sched_policy* sp, int thr);
40 static int map_fill_core(sched_policy* sp, int thr);
41 static int map_fill_chip(sched_policy* sp, int thr);
47 int (*map)(sched_policy* sp, int thr_idx);
65 void sched_policy_put(sched_policy* sp)
73 int sched_thr_to_cpu(sched_policy* sp, int thr)
75 return sp->map(sp, thr);
78 static int map_fill_strand(sched_policy* sp, int thr)
80 int num_cpus = sp->num_cpus;
84 static int map_fill_core(sched_policy* sp, int thr)
86 int num_cpus = sp->num_cpus;
92 core = thr % (NUM_CORES_PER_CHIP * sp->num_chips_per_sys);
93 strand = (thr / (NUM_CORES_PER_CHIP * sp->num_chips_per_sys));
101 static int map_fill_chip(sched_policy* sp, int thr)
103 int num_cpus = sp->num_cpus;
110 chip = thr % sp->num_chips_per_sys;
111 core = (thr / sp->num_chips_per_sys) % NUM_CORES_PER_CHIP;