All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/arm: Fix rtds scheduler for arm
@ 2015-01-30 12:30 Denis Drozdov
  2015-01-30 12:38 ` Jan Beulich
  0 siblings, 1 reply; 24+ messages in thread
From: Denis Drozdov @ 2015-01-30 12:30 UTC (permalink / raw)
  To: xen-devel; +Cc: george.dunlap, denys drozdov

From: denys drozdov <denys.drozdov@globallogic.com>

Change-Id: I9b315f213775b8410fe75cd96968dcb213ea287b
Signed-off-by: denys drozdov <denys.drozdov@globallogic.com>
---
 xen/common/sched_rt.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/xen/common/sched_rt.c b/xen/common/sched_rt.c
index e70d6c7..1ab0a62 100644
--- a/xen/common/sched_rt.c
+++ b/xen/common/sched_rt.c
@@ -1010,8 +1010,9 @@ rt_context_saved(const struct scheduler *ops, struct vcpu *vc)
     struct rt_vcpu *snext = NULL;
     struct rt_dom *sdom = NULL;
     struct rt_private *prv = rt_priv(ops);
-    cpumask_t *online;
-    spinlock_t *lock = vcpu_schedule_lock_irq(vc);
+    cpumask_t *online; 
+    unsigned long flags;
+    spinlock_t *lock = vcpu_schedule_lock_irqsave(vc, &flags);
 
     clear_bit(__RTDS_scheduled, &svc->flags);
     /* not insert idle vcpu to runq */
@@ -1032,7 +1033,7 @@ rt_context_saved(const struct scheduler *ops, struct vcpu *vc)
         runq_tickle(ops, snext);
     }
 out:
-    vcpu_schedule_unlock_irq(lock, vc);
+    vcpu_schedule_unlock_irqrestore(lock, flags, vc);
 }
 
 /*
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2015-02-05 12:48 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-30 12:30 [PATCH] xen/arm: Fix rtds scheduler for arm Denis Drozdov
2015-01-30 12:38 ` Jan Beulich
2015-01-30 15:40   ` Denis Drozdov
2015-01-30 15:46     ` Julien Grall
2015-01-30 15:56       ` Andrew Cooper
2015-01-30 16:10         ` Julien Grall
2015-01-30 16:19           ` Denys Drozdov
2015-01-30 16:29             ` Julien Grall
2015-01-31 10:50             ` Ian Campbell
2015-02-02 10:49               ` Denys Drozdov
2015-02-02 11:14                 ` Ian Campbell
2015-02-02 11:40                   ` Jan Beulich
2015-02-02 12:16                     ` Ian Campbell
2015-02-02 12:59                       ` Julien Grall
2015-02-02 13:06                         ` Ian Campbell
2015-02-04 15:04                         ` Stefano Stabellini
2015-02-04 15:09                           ` Ian Campbell
2015-02-02 13:07                       ` Jan Beulich
2015-02-02 18:03                         ` Denis Drozdov
2015-02-04 15:13                           ` Ian Campbell
2015-02-04 16:19                             ` Dario Faggioli
2015-02-04 16:45                             ` Julien Grall
2015-02-04 17:13                               ` [PATCH] xen/arm: Call context_saved() with interrupts enabled during context switch Denis Drozdov
2015-02-05 12:48                                 ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.