aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/sched-if.h
diff options
context:
space:
mode:
authorEmmanuel Ackaouy <ack@xensource.com>2006-11-06 17:32:00 +0000
committerEmmanuel Ackaouy <ack@xensource.com>2006-11-06 17:32:00 +0000
commit72ee01f5db3d6cf3eccabe72106ffa9e2c294e0f (patch)
tree31cb4eea8aa3a637c2cc2d00cb51aab0ec1a867b /xen/include/xen/sched-if.h
parent32ae1c338735a03ae565404561332dde803af915 (diff)
downloadxen-72ee01f5db3d6cf3eccabe72106ffa9e2c294e0f.tar.gz
xen-72ee01f5db3d6cf3eccabe72106ffa9e2c294e0f.tar.bz2
xen-72ee01f5db3d6cf3eccabe72106ffa9e2c294e0f.zip
[XEN] Initial support for multi-core and multi-threaded CPU scheduling.
In multi-core and multi-threaded systems, not all idling "CPUs" are equal: When there are idling execution vehicles, it's better to spread VCPUs across sockets and cores before co-scheduling cores and threads. Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
Diffstat (limited to 'xen/include/xen/sched-if.h')
-rw-r--r--xen/include/xen/sched-if.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h
index 410358cc48..d506d7a589 100644
--- a/xen/include/xen/sched-if.h
+++ b/xen/include/xen/sched-if.h
@@ -74,6 +74,7 @@ struct scheduler {
struct task_slice (*do_schedule) (s_time_t);
+ int (*pick_cpu) (struct vcpu *);
int (*adjust) (struct domain *,
struct xen_domctl_scheduler_op *);
void (*dump_settings) (void);