[PATCH] sched/deadline: Add DL server activated message
Kuyo Chang
kuyo.chang at mediatek.com
Tue Aug 5 08:53:32 PDT 2025
From: kuyo chang <kuyo.chang at mediatek.com>
The DL server is introduced as a replacement for realtime throttling.
When RT throttling is activated, a message
"sched: RT throttling activated" is shown. However, it is currently
difficult for users to know when the DL server is activated.
This patch adds a similar message to indicate when the DL server
is activated, which helps users debug RT/CFS contention issues.
Signed-off-by: kuyo chang <kuyo.chang at mediatek.com>
---
kernel/sched/deadline.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index e2d51f4306b3..8e0de6cdb980 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -2042,6 +2042,9 @@ enqueue_dl_entity(struct sched_dl_entity *dl_se, int flags)
}
__enqueue_dl_entity(dl_se);
+
+ if (dl_server(dl_se))
+ printk_deferred_once("sched: dl_server activated\n");
}
static void dequeue_dl_entity(struct sched_dl_entity *dl_se, int flags)
--
2.45.2
More information about the Linux-mediatek
mailing list