Lines Matching refs:cpupool
26 struct cpupool *cpupool0; /* Initial cpupool with Dom0 */
29 static struct cpupool *cpupool_list; /* linked list, sorted by poolid */
32 static struct cpupool *cpupool_cpu_moving = NULL;
37 DEFINE_PER_CPU(struct cpupool *, cpupool);
41 static struct cpupool *alloc_cpupool_struct(void) in alloc_cpupool_struct()
43 struct cpupool *c = xzalloc(struct cpupool); in alloc_cpupool_struct()
60 static void free_cpupool_struct(struct cpupool *c) in free_cpupool_struct()
76 static struct cpupool *__cpupool_find_by_id(int id, int exact) in __cpupool_find_by_id()
78 struct cpupool **q; in __cpupool_find_by_id()
89 static struct cpupool *cpupool_find_by_id(int poolid) in cpupool_find_by_id()
94 static struct cpupool *__cpupool_get_by_id(int poolid, int exact) in __cpupool_get_by_id()
96 struct cpupool *c; in __cpupool_get_by_id()
105 struct cpupool *cpupool_get_by_id(int poolid) in cpupool_get_by_id()
110 static struct cpupool *cpupool_get_next_by_id(int poolid) in cpupool_get_next_by_id()
115 void cpupool_put(struct cpupool *pool) in cpupool_put()
131 static struct cpupool *cpupool_create( in cpupool_create()
134 struct cpupool *c; in cpupool_create()
135 struct cpupool **q; in cpupool_create()
201 static int cpupool_destroy(struct cpupool *c) in cpupool_destroy()
203 struct cpupool **q; in cpupool_destroy()
231 static int cpupool_move_domain_locked(struct domain *d, struct cpupool *c) in cpupool_move_domain_locked()
235 if ( unlikely(d->cpupool == c) ) in cpupool_move_domain_locked()
238 d->cpupool->n_dom--; in cpupool_move_domain_locked()
241 d->cpupool->n_dom++; in cpupool_move_domain_locked()
247 int cpupool_move_domain(struct domain *d, struct cpupool *c) in cpupool_move_domain()
264 static int cpupool_assign_cpu_locked(struct cpupool *c, unsigned int cpu) in cpupool_assign_cpu_locked()
297 struct cpupool *c = info; in cpupool_unassign_cpu_helper()
362 static int cpupool_unassign_cpu(struct cpupool *c, unsigned int cpu) in cpupool_unassign_cpu()
431 struct cpupool *c; in cpupool_add_domain()
447 d->cpupool = c; in cpupool_add_domain()
464 if ( d->cpupool == NULL ) in cpupool_rm_domain()
467 cpupool_id = d->cpupool->cpupool_id; in cpupool_rm_domain()
468 d->cpupool->n_dom--; in cpupool_rm_domain()
469 n_dom = d->cpupool->n_dom; in cpupool_rm_domain()
470 d->cpupool = NULL; in cpupool_rm_domain()
495 struct cpupool **c; in cpupool_cpu_add()
548 struct cpupool **c; in cpupool_cpu_remove()
595 struct cpupool *c; in cpupool_do_sysctl()
691 if ( d->cpupool == NULL ) in cpupool_do_sysctl()
697 if ( op->cpupool_id == d->cpupool->cpupool_id ) in cpupool_do_sysctl()
744 struct cpupool **c; in dump_runq()