WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-4.1-testing] xen: Fix sedf scheduler

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.1-testing] xen: Fix sedf scheduler
From: Xen patchbot-4.1-testing <patchbot@xxxxxxx>
Date: Sat, 23 Jul 2011 15:11:08 +0100
Delivery-date: Sat, 23 Jul 2011 07:11:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User George Dunlap <george.dunlap@xxxxxxxxxxxxx>
# Date 1311408057 -3600
# Node ID 8d22d7bc4ed454b72db3dd5e01a9e9a84c8144bc
# Parent  5199c4f6bfabeaf4b0edb9b02e98d260e515121d
xen: Fix sedf scheduler

Update the sedf scheduler to be compatible with the most recent
generic scheduler interface changes.

Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
xen-unstable changeset:   23732:3795d79c740b
xen-unstable date:        Thu Jul 21 14:35:31 2011 +0100
---


diff -r 5199c4f6bfab -r 8d22d7bc4ed4 xen/common/sched_sedf.c
--- a/xen/common/sched_sedf.c   Thu Jul 21 14:42:23 2011 +0100
+++ b/xen/common/sched_sedf.c   Sat Jul 23 09:00:57 2011 +0100
@@ -331,6 +331,19 @@
 }
 
 
+static void sedf_insert_vcpu(const struct scheduler *ops, struct vcpu *v)
+{
+    if ( !is_idle_vcpu(v) )
+    {
+        extraq_check(v);
+    }
+    else
+    {
+        EDOM_INFO(v)->deadl_abs = 0;
+        EDOM_INFO(v)->status &= ~SEDF_ASLEEP;
+    }
+}
+
 static void *sedf_alloc_vdata(const struct scheduler *ops, struct vcpu *v, 
void *dd)
 {
     struct sedf_vcpu_info *inf;
@@ -365,16 +378,6 @@
     INIT_LIST_HEAD(&(inf->list));
     INIT_LIST_HEAD(&(inf->extralist[EXTRA_PEN_Q]));
     INIT_LIST_HEAD(&(inf->extralist[EXTRA_UTIL_Q]));
- 
-    if ( !is_idle_vcpu(v) )
-    {
-        extraq_check(v);
-    }
-    else
-    {
-        inf->deadl_abs = 0;
-        inf->status &= ~SEDF_ASLEEP;
-    }
 
     return inf;
 }
@@ -1498,6 +1501,8 @@
     .init_domain    = sedf_init_domain,
     .destroy_domain = sedf_destroy_domain,
 
+    .insert_vcpu    = sedf_insert_vcpu,
+
     .alloc_vdata    = sedf_alloc_vdata,
     .free_vdata     = sedf_free_vdata,
     .alloc_pdata    = sedf_alloc_pdata,

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.1-testing] xen: Fix sedf scheduler, Xen patchbot-4 . 1-testing <=