From: Julian Braha <julianbraha@gmail.com>
To: rafael@kernel.org
Cc: lenb@kernel.org, pavel@kernel.org, akpm@linux-foundation.org,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
Julian Braha <julianbraha@gmail.com>
Subject: [PATCH] PM: sleep: only allow relevant powerpc platforms to enable PM_SLEEP_SMP
Date: Wed, 9 Sep 2026 18:05:20 +0100 [thread overview]
Message-ID: <20260909170520.553867-1-julianbraha@gmail.com> (raw)
PM_SLEEP_SMP selects HOTPLUG_CPU, but on some powerpc platforms, this
creates an unmet dependency such as:
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n])
Selected by [y]:
- PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y]
because HOTPLUG_CPU is only available on powerpc platforms IBM pSeries and
PowerNV, Apple PowerMac, and Freescale Book-E.
For powerpc, let's ensure that PM_SLEEP_SMP can only be enabled on those
systems that support HOTPLUG_CPU.
Fixes: f3de4be9d5f8 ("PM: Fix dependencies of CONFIG_SUSPEND and CONFIG_HIBERNATION")
Signed-off-by: Julian Braha <julianbraha@gmail.com>
---
kernel/power/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
index 71165e7f04f4..7cb6495ffaa0 100644
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -146,6 +146,7 @@ config PM_SLEEP_SMP
def_bool y
depends on SMP
depends on ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE
+ depends on PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE if PPC
depends on PM_SLEEP
select HOTPLUG_CPU
--
2.55.0
next reply other threads:[~2026-09-09 17:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-09 17:05 Julian Braha [this message]
2026-09-11 8:44 ` kernel test robot
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=20260909170520.553867-1-julianbraha@gmail.com \
--to=julianbraha@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=pavel@kernel.org \
--cc=rafael@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
all inboxes | Powered by JetHome®