mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>, Tejun Heo <tj@kernel.org>,
	Juri Lelli <juri.lelli@redhat.com>,
	Vincent Guittot <vincent.guittot@linaro.org>,
	Dietmar Eggemann <dietmar.eggemann@arm.com>,
	Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>,
	Valentin Schneider <vschneid@redhat.com>,
	K Prateek Nayak <kprateek.nayak@amd.com>,
	Kyle McMartin <jkkm@meta.com>
Subject: Re: [PATCH] sched/rt: Have RT_PUSH_IPI be default off for non PREEMPT_RT
Date: Fri, 15 May 2026 10:33:15 -0400	[thread overview]
Message-ID: <20260515103315.508a8a7e@gandalf.local.home> (raw)
In-Reply-To: <20260515103110.51a598dc@gandalf.local.home>

On Fri, 15 May 2026 10:31:10 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:

> diff --git a/kernel/sched/features.h b/kernel/sched/features.h
> index 84c4fe3abd74..cce6d4159284 100644
> --- a/kernel/sched/features.h
> +++ b/kernel/sched/features.h
> @@ -110,8 +110,16 @@ SCHED_FEAT(WARN_DOUBLE_CLOCK, false)
>   * rq lock and possibly create a large contention, sending an
>   * IPI to that CPU and let that CPU push the RT task to where
>   * it should go may be a better scenario.
> + *
> + * This is best for PREEMPT_RT, but for non-RT it can cause issues
> + * when preemption is disabled for long periods of time. Have
> + * it only default enabled for PREEMPT_RT.
>   */
> +# ifdef CONFIG_PREEMPT_RT
>  SCHED_FEAT(RT_PUSH_IPI, true)
> +#else
> +SCHED_FEAT(RT_PUSH_IPI, false)
> +#endif

I just noticed that the #endif should be:

# endif

to match the indentation of the # ifdef.

I'll send a v2.

-- Steve

>  #endif

      reply	other threads:[~2026-05-15 14:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-15 14:31 Steven Rostedt
2026-05-15 14:33 ` Steven Rostedt [this message]

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=20260515103315.508a8a7e@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=bsegall@google.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=jkkm@meta.com \
    --cc=juri.lelli@redhat.com \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgorman@suse.de \
    --cc=peterz@infradead.org \
    --cc=tj@kernel.org \
    --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

all inboxes | Powered by JetHome®