ia64/xen-unstable

changeset 4801:e7c55a144530

bitkeeper revision 1.1346.1.4 (427f9553IVi9yymg7Hp6J5wwxNl-7Q)

fixed CPU locking
author sd386@font.cl.cam.ac.uk
date Mon May 09 16:52:35 2005 +0000 (2005-05-09)
parents 93a7ffae49b3
children 86285c9c18c1
files xen/common/schedule.c
line diff
     1.1 --- a/xen/common/schedule.c	Mon May 02 15:49:43 2005 +0000
     1.2 +++ b/xen/common/schedule.c	Mon May 09 16:52:35 2005 +0000
     1.3 @@ -369,7 +369,7 @@ long sched_adjdom(struct sched_adjdom_cm
     1.4              cpu = ed->processor;
     1.5              if (!__get_cpu_bit(cpu, have_lock)) {
     1.6                  /* if we don't have a lock on this CPU: acquire it*/
     1.7 -                if (!spin_trylock(&schedule_data[cpu].schedule_lock)) {
     1.8 +                if (spin_trylock(&schedule_data[cpu].schedule_lock)) {
     1.9                      /*we have this lock!*/
    1.10                      __set_cpu_bit(cpu, have_lock);
    1.11                      succ = 1;