[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] fixed CPU locking



ChangeSet 1.1346.1.4, 2005/05/09 17:52:35+01:00, sd386@xxxxxxxxxxxxxxxxx

        fixed CPU locking



 schedule.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/xen/common/schedule.c b/xen/common/schedule.c
--- a/xen/common/schedule.c     2005-05-09 14:08:35 -04:00
+++ b/xen/common/schedule.c     2005-05-09 14:08:35 -04:00
@@ -369,7 +369,7 @@
             cpu = ed->processor;
             if (!__get_cpu_bit(cpu, have_lock)) {
                 /* if we don't have a lock on this CPU: acquire it*/
-                if (!spin_trylock(&schedule_data[cpu].schedule_lock)) {
+                if (spin_trylock(&schedule_data[cpu].schedule_lock)) {
                     /*we have this lock!*/
                     __set_cpu_bit(cpu, have_lock);
                     succ = 1;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.