* [PATCH] sched/deadline: Use hrtick_enabled_dl() before start_hrtick_dl()
@ 2024-10-04 12:37 Phil Auld
2024-10-07 7:12 ` Juri Lelli
2024-10-12 14:16 ` [tip: sched/urgent] " tip-bot2 for Phil Auld
0 siblings, 2 replies; 3+ messages in thread
From: Phil Auld @ 2024-10-04 12:37 UTC (permalink / raw)
To: linux-kernel
Cc: Juri Lelli, Valentin Schneider, Peter Zijlstra, Ingo Molnar,
Dietmar Eggemann, Steven Rostedt
The deadline server code moved one of the start_hrtick_dl() calls
but dropped the dl specific hrtick_enabled check. This causes hrticks
to get armed even when sched_feat(HRTICK_DL) is false. Fix it.
Fixes: 63ba8422f876 ("sched/deadline: Introduce deadline servers")
Signed-off-by: Phil Auld <pauld@redhat.com>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Valentin Schneider <vschneid@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
---
kernel/sched/deadline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 9ce93d0bf452..be1b917dc8ce 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -2385,7 +2385,7 @@ static void set_next_task_dl(struct rq *rq, struct task_struct *p, bool first)
deadline_queue_push_tasks(rq);
- if (hrtick_enabled(rq))
+ if (hrtick_enabled_dl(rq))
start_hrtick_dl(rq, &p->dl);
}
--
2.46.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] sched/deadline: Use hrtick_enabled_dl() before start_hrtick_dl()
2024-10-04 12:37 [PATCH] sched/deadline: Use hrtick_enabled_dl() before start_hrtick_dl() Phil Auld
@ 2024-10-07 7:12 ` Juri Lelli
2024-10-12 14:16 ` [tip: sched/urgent] " tip-bot2 for Phil Auld
1 sibling, 0 replies; 3+ messages in thread
From: Juri Lelli @ 2024-10-07 7:12 UTC (permalink / raw)
To: Phil Auld
Cc: linux-kernel, Valentin Schneider, Peter Zijlstra, Ingo Molnar,
Dietmar Eggemann, Steven Rostedt
Hi Phil,
On 04/10/24 08:37, Phil Auld wrote:
> The deadline server code moved one of the start_hrtick_dl() calls
> but dropped the dl specific hrtick_enabled check. This causes hrticks
> to get armed even when sched_feat(HRTICK_DL) is false. Fix it.
>
> Fixes: 63ba8422f876 ("sched/deadline: Introduce deadline servers")
> Signed-off-by: Phil Auld <pauld@redhat.com>
> Cc: Juri Lelli <juri.lelli@redhat.com>
> Cc: Valentin Schneider <vschneid@redhat.com>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Ingo Molnar <mingo@redhat.com>
> Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
> Cc: Steven Rostedt <rostedt@goodmis.org>
Indeed. Good catch!
Acked-by: Juri Lelli <juri.lelli@redhat.com>
Best,
Juri
^ permalink raw reply [flat|nested] 3+ messages in thread* [tip: sched/urgent] sched/deadline: Use hrtick_enabled_dl() before start_hrtick_dl()
2024-10-04 12:37 [PATCH] sched/deadline: Use hrtick_enabled_dl() before start_hrtick_dl() Phil Auld
2024-10-07 7:12 ` Juri Lelli
@ 2024-10-12 14:16 ` tip-bot2 for Phil Auld
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Phil Auld @ 2024-10-12 14:16 UTC (permalink / raw)
To: linux-tip-commits
Cc: Phil Auld, Peter Zijlstra (Intel), Juri Lelli, x86, linux-kernel
The following commit has been merged into the sched/urgent branch of tip:
Commit-ID: d16b7eb6f523eeac3cff13001ef2a59cd462aa73
Gitweb: https://git.kernel.org/tip/d16b7eb6f523eeac3cff13001ef2a59cd462aa73
Author: Phil Auld <pauld@redhat.com>
AuthorDate: Fri, 04 Oct 2024 08:37:29 -04:00
Committer: Peter Zijlstra <peterz@infradead.org>
CommitterDate: Fri, 11 Oct 2024 10:49:32 +02:00
sched/deadline: Use hrtick_enabled_dl() before start_hrtick_dl()
The deadline server code moved one of the start_hrtick_dl() calls
but dropped the dl specific hrtick_enabled check. This causes hrticks
to get armed even when sched_feat(HRTICK_DL) is false. Fix it.
Fixes: 63ba8422f876 ("sched/deadline: Introduce deadline servers")
Signed-off-by: Phil Auld <pauld@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://lore.kernel.org/r/20241004123729.460668-1-pauld@redhat.com
---
kernel/sched/deadline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 9ce93d0..be1b917 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -2385,7 +2385,7 @@ static void set_next_task_dl(struct rq *rq, struct task_struct *p, bool first)
deadline_queue_push_tasks(rq);
- if (hrtick_enabled(rq))
+ if (hrtick_enabled_dl(rq))
start_hrtick_dl(rq, &p->dl);
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-10-12 14:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-04 12:37 [PATCH] sched/deadline: Use hrtick_enabled_dl() before start_hrtick_dl() Phil Auld
2024-10-07 7:12 ` Juri Lelli
2024-10-12 14:16 ` [tip: sched/urgent] " tip-bot2 for Phil Auld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox