* [PATCH v2 RESEND] sched/fair: avoid redundant hrtimer check
@ 2022-07-04 13:36 Huichun Feng
0 siblings, 0 replies; only message in thread
From: Huichun Feng @ 2022-07-04 13:36 UTC (permalink / raw)
To: Ingo Molnar, Peter Zijlstra, Juri Lelli, Vincent Guittot
Cc: Dietmar Eggemann, Steven Rostedt, Ben Segall, Mel Gorman,
Daniel Bristot de Oliveira, Valentin Schneider,
open list:SCHEDULER, jserv, Chin-En Lin, foxhoundsk.tw
The check is required iff HRTICK is enabled and DOUBLE_TICK is disabled,
don't do that then.
Signed-off-by: Huichun Feng <foxhoundsk.tw@gmail.com>
---
Changes since v1:
- Refine commit message
v1 link: https://lore.kernel.org/linux-kernel/20220606122612.2580930-1-foxhoundsk.tw@gmail.com/
Sorry, I shouldn't send v2 in the same thread.
kernel/sched/fair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 77b2048a9..80cc1a924 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -4668,7 +4668,7 @@ entity_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr, int queued)
/*
* don't let the period tick interfere with the hrtick preemption
*/
- if (!sched_feat(DOUBLE_TICK) &&
+ if (sched_feat(HRTICK) && !sched_feat(DOUBLE_TICK) &&
hrtimer_active(&rq_of(cfs_rq)->hrtick_timer))
return;
#endif
--
2.36.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-04 13:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-04 13:36 [PATCH v2 RESEND] sched/fair: avoid redundant hrtimer check Huichun Feng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®