aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/sched_sedf.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-09-21 19:34:00 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-09-21 19:34:00 +0100
commit97bfffea3cffe29e82de077a994cfbffe7b844f2 (patch)
tree5f93088eb9e442b18fb5b0b98715585fff97f33d /xen/common/sched_sedf.c
parentfc99b5876270244feb34240217b0ebbbe935afed (diff)
downloadxen-97bfffea3cffe29e82de077a994cfbffe7b844f2.tar.gz
xen-97bfffea3cffe29e82de077a994cfbffe7b844f2.tar.bz2
xen-97bfffea3cffe29e82de077a994cfbffe7b844f2.zip
[XEN] Fix domctl for changing VCPU affinity.
Now works for any VCPU, including the caller's VCPU. By not synchronously pausing the affected VCPU we avoid any risk of deadlock. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/sched_sedf.c')
-rw-r--r--xen/common/sched_sedf.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/xen/common/sched_sedf.c b/xen/common/sched_sedf.c
index 8559e3bdf5..02c884d06e 100644
--- a/xen/common/sched_sedf.c
+++ b/xen/common/sched_sedf.c
@@ -1175,20 +1175,6 @@ void sedf_wake(struct vcpu *d)
}
-static int sedf_set_affinity(struct vcpu *v, cpumask_t *affinity)
-{
- if ( v == current )
- return cpu_isset(v->processor, *affinity) ? 0 : -EBUSY;
-
- vcpu_pause(v);
- v->cpu_affinity = *affinity;
- v->processor = first_cpu(v->cpu_affinity);
- vcpu_unpause(v);
-
- return 0;
-}
-
-
/* Print a lot of useful information about a domains in the system */
static void sedf_dump_domain(struct vcpu *d)
{
@@ -1449,7 +1435,6 @@ struct scheduler sched_sedf_def = {
.sleep = sedf_sleep,
.wake = sedf_wake,
.adjust = sedf_adjust,
- .set_affinity = sedf_set_affinity
};
/*