public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vishal Chourasia <vishalc@linux.ibm.com>
To: Huang Shijie <shijie@os.amperecomputing.com>
Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com,
	patches@amperecomputing.com, vincent.guittot@linaro.org,
	dietmar.eggemann@arm.com, rostedt@goodmis.org,
	bsegall@google.com, mgorman@suse.de, vschneid@redhat.com,
	linux-kernel@vger.kernel.org, Christoph Lameter <cl@linux.com>
Subject: Re: [PATCH] sched/fair: remove the DOUBLE_TICK feature
Date: Tue, 1 Oct 2024 19:02:53 +0530	[thread overview]
Message-ID: <Zvv6BdRIlg3QUzoy@linux.ibm.com> (raw)
In-Reply-To: <20241001065451.10356-1-shijie@os.amperecomputing.com>

On Tue, Oct 01, 2024 at 02:54:51PM +0800, Huang Shijie wrote:
> The patch "5e963f2bd46 sched/fair: Commit to EEVDF"
> removed the code following the DOUBLE_TICK:
> 	-
> 	-       if (!sched_feat(EEVDF) && cfs_rq->nr_running > 1)
> 	-               check_preempt_tick(cfs_rq, curr);
> 
> The DOUBLE_TICK feature becomes dead code now, so remove it.
> 
> Reviewed-by: Christoph Lameter (Ampere) <cl@linux.com>
> Signed-off-by: Huang Shijie <shijie@os.amperecomputing.com>

Reviewed-by: Vishal Chourasia <vishalc@linux.ibm.com>

[1] https://lore.kernel.org/all/20240308052304.1835792-2-vishalc@linux.ibm.com
> ---
>  kernel/sched/fair.c     | 6 ------
>  kernel/sched/features.h | 1 -
>  2 files changed, 7 deletions(-)
> 
> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index 19afc2253c4d..1812c9cc079d 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -5680,12 +5680,6 @@ entity_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr, int queued)
>  		resched_curr(rq_of(cfs_rq));
>  		return;
>  	}
> -	/*
> -	 * don't let the period tick interfere with the hrtick preemption
> -	 */
> -	if (!sched_feat(DOUBLE_TICK) &&
> -			hrtimer_active(&rq_of(cfs_rq)->hrtick_timer))
> -		return;
>  #endif
>  }
>  
> diff --git a/kernel/sched/features.h b/kernel/sched/features.h
> index 0ae351974e49..a3d331dd2d8f 100644
> --- a/kernel/sched/features.h
> +++ b/kernel/sched/features.h
> @@ -56,7 +56,6 @@ SCHED_FEAT(WAKEUP_PREEMPTION, true)
>  
>  SCHED_FEAT(HRTICK, false)
>  SCHED_FEAT(HRTICK_DL, false)
> -SCHED_FEAT(DOUBLE_TICK, false)
>  
>  /*
>   * Decrement CPU capacity based on time not spent running tasks
> -- 
> 2.40.1
> 

  reply	other threads:[~2024-10-01 13:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-01  6:54 [PATCH] sched/fair: remove the DOUBLE_TICK feature Huang Shijie
2024-10-01 13:32 ` Vishal Chourasia [this message]
2024-10-08  7:56 ` [tip: sched/core] " tip-bot2 for Huang Shijie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Zvv6BdRIlg3QUzoy@linux.ibm.com \
    --to=vishalc@linux.ibm.com \
    --cc=bsegall@google.com \
    --cc=cl@linux.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=juri.lelli@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=patches@amperecomputing.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=shijie@os.amperecomputing.com \
    --cc=vincent.guittot@linaro.org \
    --cc=vschneid@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox