diff options
author | Keir Fraser <keir@xen.org> | 2011-02-06 16:07:27 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2011-02-06 16:07:27 +0000 |
commit | b9a9873c2e97a765c5136b223bf8921f3bd40c66 (patch) | |
tree | 72c3bfe424d7204e11ad88e040d0d4fed7c87362 /xen/include/xen/sched.h | |
parent | a69a0358f60de0ce4d00645d1599f7f7284a32c2 (diff) | |
download | xen-b9a9873c2e97a765c5136b223bf8921f3bd40c66.tar.gz xen-b9a9873c2e97a765c5136b223bf8921f3bd40c66.tar.bz2 xen-b9a9873c2e97a765c5136b223bf8921f3bd40c66.zip |
cpupool: Check for memory allocation failure on switching schedulers
When switching schedulers on a physical cpu due to a cpupool operation
check for a potential memory allocation failure and stop the operation
gracefully.
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Diffstat (limited to 'xen/include/xen/sched.h')
-rw-r--r-- | xen/include/xen/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index c5def0b03f..ce45800dbe 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -607,7 +607,7 @@ struct scheduler; struct scheduler *scheduler_get_default(void); struct scheduler *scheduler_alloc(unsigned int sched_id, int *perr); void scheduler_free(struct scheduler *sched); -void schedule_cpu_switch(unsigned int cpu, struct cpupool *c); +int schedule_cpu_switch(unsigned int cpu, struct cpupool *c); void vcpu_force_reschedule(struct vcpu *v); int cpu_disable_scheduler(unsigned int cpu); int vcpu_set_affinity(struct vcpu *v, cpumask_t *affinity); |