ia64/xen-unstable

changeset 14534:fbe72d878196

Return an error when a schedule-setting call fails.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Ewan Mellor <ewan@xensource.com>
date Fri Mar 23 11:52:09 2007 +0000 (2007-03-23)
parents fb6395d2e979
children 931c4b77ea7d
files xen/common/schedule.c
line diff
     1.1 --- a/xen/common/schedule.c	Fri Mar 23 11:32:32 2007 +0000
     1.2 +++ b/xen/common/schedule.c	Fri Mar 23 11:52:09 2007 +0000
     1.3 @@ -524,6 +524,7 @@ int sched_id(void)
     1.4  long sched_adjust(struct domain *d, struct xen_domctl_scheduler_op *op)
     1.5  {
     1.6      struct vcpu *v;
     1.7 +    long ret;
     1.8      
     1.9      if ( (op->sched_id != ops.sched_id) ||
    1.10           ((op->cmd != XEN_DOMCTL_SCHEDOP_putinfo) &&
    1.11 @@ -552,8 +553,8 @@ long sched_adjust(struct domain *d, stru
    1.12      if ( d == current->domain )
    1.13          vcpu_schedule_lock_irq(current);
    1.14  
    1.15 -    SCHED_OP(adjust, d, op);
    1.16 -    TRACE_1D(TRC_SCHED_ADJDOM, d->domain_id);
    1.17 +    if ( (ret = SCHED_OP(adjust, d, op)) == 0 )
    1.18 +        TRACE_1D(TRC_SCHED_ADJDOM, d->domain_id);
    1.19  
    1.20      if ( d == current->domain )
    1.21          vcpu_schedule_unlock_irq(current);
    1.22 @@ -564,7 +565,7 @@ long sched_adjust(struct domain *d, stru
    1.23              vcpu_unpause(v);
    1.24      }
    1.25  
    1.26 -    return 0;
    1.27 +    return ret;
    1.28  }
    1.29  
    1.30  static void vcpu_periodic_timer_work(struct vcpu *v)