summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-09-13 16:42:35 +0200
committerLuis Claudio R. Goncalves <lgoncalv@redhat.com>2023-02-18 22:05:18 -0300
commit0dd9be12db50e883fbf9df5c9bb2c77512640aa9 (patch)
tree074815db043c930495e4974f02bb95303a2ca202 /kernel
parente1a2cca164483b16d1da556ec7e94a018678159b (diff)
downloadlinux-rt-0dd9be12db50e883fbf9df5c9bb2c77512640aa9.tar.gz
sched: Disable TTWU_QUEUE on RT
The queued remote wakeup mechanism can introduce rather large latencies if the number of migrated tasks is high. Disable it for RT. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/features.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sched/features.h b/kernel/sched/features.h
index f1bf5e12d889..402fd37fb340 100644
--- a/kernel/sched/features.h
+++ b/kernel/sched/features.h
@@ -45,11 +45,16 @@ SCHED_FEAT(DOUBLE_TICK, false)
*/
SCHED_FEAT(NONTASK_CAPACITY, true)
+#ifdef CONFIG_PREEMPT_RT
+SCHED_FEAT(TTWU_QUEUE, false)
+#else
+
/*
* Queue remote wakeups on the target CPU and process them
* using the scheduler IPI. Reduces rq->lock contention/bounces.
*/
SCHED_FEAT(TTWU_QUEUE, true)
+#endif
/*
* When doing wakeups, attempt to limit superfluous scans of the LLC domain.