mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christian Loehle <christian.loehle@arm.com>
To: Mehmet Fide <mehmet.fide@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Juri Lelli <juri.lelli@redhat.com>,
	Vincent Guittot <vincent.guittot@linaro.org>,
	Dietmar Eggemann <dietmar.eggemann@arm.com>,
	Steven Rostedt <rostedt@goodmis.org>,
	Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>,
	Valentin Schneider <vschneid@redhat.com>,
	K Prateek Nayak <kprateek.nayak@amd.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH] sched/fair: Skip PELT on !CONFIG_SMP
Date: Sun, 29 Nov 2026 19:53:57 +0000	[thread overview]
Message-ID: <cbddd151-dd01-4884-a485-8cda8cac789d@arm.com> (raw)
In-Reply-To: <20261129193248.858301-1-mehmet.fide@gmail.com>

On 11/29/26 19:32, Mehmet Fide wrote:
> Hi Christian,
> 
>> We can still use them for DVFS, i.e. schedutil, can't we?
> 
> Not with CONFIG_SMP=n: CPU_FREQ_GOV_SCHEDUTIL still depends on SMP, so
> such a kernel has no schedutil. If that dependency is dropped, the
> skip would have to follow schedutil instead of SMP.

Ah you're right of course. That being said that was because PELT didn't
support UP back then while now it's probably just a matter of removing
that Kconfig dependency AFAICT, if anything this probably should've been
done with cac5cefbade9 ("sched/smp: Make SMP unconditional")


Not that it actually achieves what you aim to do, rather the opposite.

> 
>> Besides, the entire point of the commit was to get rid of the SMP ifdeffery
>> and this is introducing them in a worse way.
> 
> I went by the cover letter of the series, which asked for UP
> improvements through "well-placed IS_ENABLED(CONFIG_SMP) kind of
> toggles". If seven of them in fair.c are too many for 7-22 % on the
> round trips of a UP board, is there a form you would accept?
> 

You'll be glad to hear that I don't call the shots here ;)
The feeling I get is that scheduler folks dream of dropping support
for CONFIG_SMP=n altogether if there was a way that they could...

      reply	other threads:[~2026-11-29 19:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 19:19 Mehmet Fide
2026-11-29 19:25 ` Christian Loehle
2026-11-29 19:32   ` Mehmet Fide
2026-11-29 19:53     ` Christian Loehle [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=cbddd151-dd01-4884-a485-8cda8cac789d@arm.com \
    --to=christian.loehle@arm.com \
    --cc=bsegall@google.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=juri.lelli@redhat.com \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mehmet.fide@gmail.com \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.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®