All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <480ED122.BA47.005A.0@novell.com>

diff --git a/a/1.txt b/N1/1.txt
index 92d5919..1c20220 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -120,3 +120,17 @@ I think we can simplify this further.  We really only need to push here if we ar
 @@ -1058,11 +1058,14 @@ static void post_schedule_rt(struct rq *rq)
         }
  }
+
+-
++/*
++ * If we are not running and we are not going to reschedule soon, we should
++ * try to push tasks away now
++ */
+ static void task_wake_up_rt(struct rq *rq, struct task_struct *p)
+ {
+        if (!task_running(rq, p) &&
+-           (p->prio >= rq->rt.highest_prio) &&
++           !test_tsk_thread_flag(rq->curr, TIF_NEED_RESCHED) &&
+            rq->rt.overloaded)
+                push_rt_tasks(rq);
+ }
diff --git a/a/content_digest b/N1/content_digest
index c7b69a6..847f039 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -139,6 +139,20 @@
  "+++ b/kernel/sched_rt.c\n"
  "@@ -1058,11 +1058,14 @@ static void post_schedule_rt(struct rq *rq)\n"
  "        }\n"
+ " }\n"
+ "\n"
+ "-\n"
+ "+/*\n"
+ "+ * If we are not running and we are not going to reschedule soon, we should\n"
+ "+ * try to push tasks away now\n"
+ "+ */\n"
+ " static void task_wake_up_rt(struct rq *rq, struct task_struct *p)\n"
+ " {\n"
+ "        if (!task_running(rq, p) &&\n"
+ "-           (p->prio >= rq->rt.highest_prio) &&\n"
+ "+           !test_tsk_thread_flag(rq->curr, TIF_NEED_RESCHED) &&\n"
+ "            rq->rt.overloaded)\n"
+ "                push_rt_tasks(rq);\n"
   }
 
-e2557e573ad363c209b2005d2009d72f3328874b6b57f74811c235f32709b6d2
+6f29fb8b891e30ad2bf97b52dc75c0076d639802f22ebe7e5ac1e07b2bc9b56d

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.