summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Bakita <bakitajoshua@gmail.com>2021-04-14 23:12:15 -0400
committerJoshua Bakita <bakitajoshua@gmail.com>2021-04-14 23:12:15 -0400
commitee55e03db8da32a865cfcf292d06c9ca0a588439 (patch)
treea14222354d19eb8097ff14670479566033afecd9
parenta023a031a1c028fc20e6465116b8aeece9cdac7d (diff)
More rebase cleanup
-rw-r--r--kernel/sched/litmus.c1
-rw-r--r--litmus/sched_gsn_edf.c8
-rw-r--r--litmus/sched_psn_edf.c3
3 files changed, 5 insertions, 7 deletions
diff --git a/kernel/sched/litmus.c b/kernel/sched/litmus.c
index 5244f9e1da6f..86a646b1f724 100644
--- a/kernel/sched/litmus.c
+++ b/kernel/sched/litmus.c
@@ -268,6 +268,7 @@ static struct task_struct *pick_next_task_litmus(struct rq *rq,
268 struct task_struct *prev, struct rq_flags *rf) 268 struct task_struct *prev, struct rq_flags *rf)
269{ 269{
270 struct task_struct *next; 270 struct task_struct *next;
271 BUG_ON(!rq->curr);
271 if (rq->curr && is_realtime(rq->curr)) 272 if (rq->curr && is_realtime(rq->curr))
272 update_time_litmus(rq, rq->curr); 273 update_time_litmus(rq, rq->curr);
273 274
diff --git a/litmus/sched_gsn_edf.c b/litmus/sched_gsn_edf.c
index d4013aed6196..b76e46372c6a 100644
--- a/litmus/sched_gsn_edf.c
+++ b/litmus/sched_gsn_edf.c
@@ -11,10 +11,9 @@
11#include <linux/spinlock.h> 11#include <linux/spinlock.h>
12#include <linux/percpu.h> 12#include <linux/percpu.h>
13#include <linux/sched.h> 13#include <linux/sched.h>
14#include <linux/slab.h>
15#include <linux/sched/topology.h>
16#include <linux/wait.h>
17#include <linux/sched/signal.h> 14#include <linux/sched/signal.h>
15#include <linux/sched/topology.h>
16#include <linux/slab.h>
18 17
19#include <litmus/debug_trace.h> 18#include <litmus/debug_trace.h>
20#include <litmus/litmus.h> 19#include <litmus/litmus.h>
@@ -807,8 +806,7 @@ int gsnedf_fmlp_lock(struct litmus_lock* l)
807 /* FIXME: interruptible would be nice some day */ 806 /* FIXME: interruptible would be nice some day */
808 set_current_state(TASK_UNINTERRUPTIBLE); 807 set_current_state(TASK_UNINTERRUPTIBLE);
809 808
810 wait.flags |= WQ_FLAG_EXCLUSIVE; 809 __add_wait_queue_entry_tail_exclusive(&sem->wait, &wait);
811 __add_wait_queue_entry_tail(&sem->wait, &wait);
812 810
813 /* check if we need to activate priority inheritance */ 811 /* check if we need to activate priority inheritance */
814 if (edf_higher_prio(t, sem->hp_waiter)) { 812 if (edf_higher_prio(t, sem->hp_waiter)) {
diff --git a/litmus/sched_psn_edf.c b/litmus/sched_psn_edf.c
index b5a3814b572f..635639fb187f 100644
--- a/litmus/sched_psn_edf.c
+++ b/litmus/sched_psn_edf.c
@@ -415,8 +415,7 @@ int psnedf_fmlp_lock(struct litmus_lock* l)
415 /* FIXME: interruptible would be nice some day */ 415 /* FIXME: interruptible would be nice some day */
416 set_current_state(TASK_UNINTERRUPTIBLE); 416 set_current_state(TASK_UNINTERRUPTIBLE);
417 417
418 wait.flags |= WQ_FLAG_EXCLUSIVE; 418 __add_wait_queue_entry_tail_exclusive(&sem->wait, &wait);
419 __add_wait_queue_entry_tail(&sem->wait, &wait);
420 419
421 TS_LOCK_SUSPEND; 420 TS_LOCK_SUSPEND;
422 421