linux/debian/patches-rt/0101-sched-fair-Make-the-hr...

38 lines
1.7 KiB
Diff
Raw Permalink Normal View History

2020-10-12 12:52:06 +00:00
From 13f1c058e87c10e20a3a71ae4b264739b6dc2759 Mon Sep 17 00:00:00 2001
Message-Id: <13f1c058e87c10e20a3a71ae4b264739b6dc2759.1601675152.git.zanussi@kernel.org>
In-Reply-To: <5b5a156f9808b1acf1205606e03da117214549ea.1601675151.git.zanussi@kernel.org>
References: <5b5a156f9808b1acf1205606e03da117214549ea.1601675151.git.zanussi@kernel.org>
2019-01-11 14:52:15 +00:00
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Tue, 8 Jan 2019 12:31:06 +0100
2020-09-04 20:10:21 +00:00
Subject: [PATCH 101/333] sched/fair: Make the hrtimers non-hard again
2020-10-12 12:52:06 +00:00
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.148-rt64.tar.xz
2019-01-11 14:52:15 +00:00
Since commit "sched/fair: Robustify CFS-bandwidth timer locking" both
hrtimer can run in softirq context because now interrupts are disabled
as part of the locking procedure.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
2019-04-08 23:49:20 +00:00
kernel/sched/fair.c | 4 ++--
2019-01-11 14:52:15 +00:00
1 file changed, 2 insertions(+), 2 deletions(-)
2019-04-08 23:49:20 +00:00
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
2020-09-04 20:10:21 +00:00
index 22b8ce4bb107..2443f921b19f 100644
2019-01-11 14:52:15 +00:00
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -4951,9 +4951,9 @@ void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b)
2019-01-11 14:52:15 +00:00
cfs_b->period = ns_to_ktime(default_cfs_period());
INIT_LIST_HEAD(&cfs_b->throttled_cfs_rq);
- hrtimer_init(&cfs_b->period_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD);
+ hrtimer_init(&cfs_b->period_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED);
cfs_b->period_timer.function = sched_cfs_period_timer;
- hrtimer_init(&cfs_b->slack_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
+ hrtimer_init(&cfs_b->slack_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
cfs_b->slack_timer.function = sched_cfs_slack_timer;
cfs_b->distribute_running = 0;
}
2020-01-03 23:36:11 +00:00
--
2020-06-22 13:14:16 +00:00
2.17.1
2020-01-03 23:36:11 +00:00