summaryrefslogtreecommitdiff
blob: 00e7972208084c079a507c072e78a503ff4c6296 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Index: vserver-sources-2.1.1_2.6.16/kernel/sched_hard.h
===================================================================
--- vserver-sources-2.1.1_2.6.16.orig/kernel/sched_hard.h
+++ vserver-sources-2.1.1_2.6.16/kernel/sched_hard.h
@@ -7,6 +7,7 @@
 static inline
 void vx_idle_resched(runqueue_t *rq)
 {
+	/* maybe have a better criterion for paused */
 	if (!--rq->idle_tokens && !list_empty(&rq->hold_queue))
 		set_need_resched();
 }
@@ -177,7 +178,7 @@ void vx_try_unhold(runqueue_t *rq, int c
 	int maxidle = HZ;
 	int minskip = 0;
 
-	/* nothing to do? */
+	/* nothing to do? what about pause? */
 	if (list_empty(&rq->hold_queue))
 		return;
 
@@ -187,6 +188,7 @@ void vx_try_unhold(runqueue_t *rq, int c
 		struct task_struct *p;
 
 		p = list_entry(l, task_t, run_list);
+		/* don't bother with same context */
 		if (vxi == p->vx_info)
 			continue;