2020-08-28 04:53:35 +00:00
|
|
|
From b01de7d61b20c86fad00d89bd7a5505f546a5dcc Mon Sep 17 00:00:00 2001
|
|
|
|
Message-Id: <b01de7d61b20c86fad00d89bd7a5505f546a5dcc.1596234184.git.zanussi@kernel.org>
|
|
|
|
In-Reply-To: <378ee68279f6a7631221f2670a9298620148690d.1596234183.git.zanussi@kernel.org>
|
|
|
|
References: <378ee68279f6a7631221f2670a9298620148690d.1596234183.git.zanussi@kernel.org>
|
2020-02-21 18:07:43 +00:00
|
|
|
From: Juri Lelli <juri.lelli@redhat.com>
|
|
|
|
Date: Wed, 31 Jul 2019 12:37:15 +0200
|
2020-07-15 20:05:29 +00:00
|
|
|
Subject: [PATCH 288/329] sched/deadline: Ensure inactive_timer runs in hardirq
|
2020-02-21 18:07:43 +00:00
|
|
|
context
|
2020-08-28 04:53:35 +00:00
|
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.135-rt60.tar.xz
|
2020-02-21 18:07:43 +00:00
|
|
|
|
|
|
|
[ Upstream commit ba94e7aed7405c58251b1380e6e7d73aa8284b41 ]
|
|
|
|
|
|
|
|
SCHED_DEADLINE inactive timer needs to run in hardirq context (as
|
|
|
|
dl_task_timer already does) on PREEMPT_RT
|
|
|
|
|
|
|
|
Change the mode to HRTIMER_MODE_REL_HARD.
|
|
|
|
|
|
|
|
[ tglx: Fixed up the start site, so mode debugging works ]
|
|
|
|
|
|
|
|
Signed-off-by: Juri Lelli <juri.lelli@redhat.com>
|
|
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
|
|
Link: https://lkml.kernel.org/r/20190731103715.4047-1-juri.lelli@redhat.com
|
|
|
|
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
|
|
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
|
|
|
|
---
|
|
|
|
kernel/sched/deadline.c | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
|
2020-07-15 20:05:29 +00:00
|
|
|
index 7d47c9b9726e..19e67ede0414 100644
|
2020-02-21 18:07:43 +00:00
|
|
|
--- a/kernel/sched/deadline.c
|
|
|
|
+++ b/kernel/sched/deadline.c
|
|
|
|
@@ -287,7 +287,7 @@ static void task_non_contending(struct task_struct *p)
|
|
|
|
|
|
|
|
dl_se->dl_non_contending = 1;
|
|
|
|
get_task_struct(p);
|
|
|
|
- hrtimer_start(timer, ns_to_ktime(zerolag_time), HRTIMER_MODE_REL);
|
|
|
|
+ hrtimer_start(timer, ns_to_ktime(zerolag_time), HRTIMER_MODE_REL_HARD);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void task_contending(struct sched_dl_entity *dl_se, int flags)
|
|
|
|
@@ -1325,7 +1325,7 @@ void init_dl_inactive_task_timer(struct sched_dl_entity *dl_se)
|
|
|
|
{
|
|
|
|
struct hrtimer *timer = &dl_se->inactive_timer;
|
|
|
|
|
|
|
|
- hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
|
|
|
|
+ hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
|
|
|
|
timer->function = inactive_task_timer;
|
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2020-06-22 13:14:16 +00:00
|
|
|
2.17.1
|
2020-02-21 18:07:43 +00:00
|
|
|
|