public inbox for linux-kselftest@vger.kernel.org
 help / color / mirror / Atom feed
From: Shuah Khan <skhan@linuxfoundation.org>
To: Dmytro Maluka <dmaluka@chromium.org>,
	Shuah Khan <shuah@kernel.org>,
	Jihed Chaibi <jihed.chaibi.dev@gmail.com>,
	"open list:KERNEL SELFTEST FRAMEWORK"
	<linux-kselftest@vger.kernel.org>,
	open list <linux-kernel@vger.kernel.org>,
	Shuah Khan <skhan@linuxfoundation.org>
Subject: Re: [PATCH] selftests/cpu-hotplug: Fix check for cpu hotplug not supported
Date: Tue, 31 Mar 2026 16:09:01 -0600	[thread overview]
Message-ID: <f3424f7e-9e76-4eaf-ac33-53b8d2e0bd8d@linuxfoundation.org> (raw)
In-Reply-To: <20260319153825.2813576-1-dmaluka@chromium.org>

On 3/19/26 09:38, Dmytro Maluka wrote:
> If CONFIG_HOTPLUG_CPU is disabled, /sys/devices/system/cpu/cpu*
> directories are still populated, so the test fails to correctly detect
> that CPU hotplug is not supported.
> 
> Fix this by checking for the presence of 'online' files in those
> directories instead. The 'online' node is created for the given CPU if
> and only if this CPU supports hotplug. So if none of the CPUs have
> 'online' nodes, it means CPU hotplug is not supported.
> 
> Signed-off-by: Dmytro Maluka <dmaluka@chromium.org>
> ---

Applied to linux_kselftest next for Linux 7.1-rc1.

thanks,
-- Shuah

      reply	other threads:[~2026-03-31 22:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-19 15:38 [PATCH] selftests/cpu-hotplug: Fix check for cpu hotplug not supported Dmytro Maluka
2026-03-31 22:09 ` Shuah Khan [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=f3424f7e-9e76-4eaf-ac33-53b8d2e0bd8d@linuxfoundation.org \
    --to=skhan@linuxfoundation.org \
    --cc=dmaluka@chromium.org \
    --cc=jihed.chaibi.dev@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=shuah@kernel.org \
    /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