From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: (fwd) empty /sys/power/state?
Date: Sun, 20 May 2007 01:33:16 +0200 (CEST) [thread overview]
Message-ID: <tkrat.64219d323de1c016@s5r6.in-berlin.de> (raw)
In-Reply-To: <200705200120.45892.rjw@sisk.pl>
Rafael J. Wysocki wrote:
> We use the CPU hotplug code for disabling/enabling nonboot CPUs.
>
> You need to enable it to be able to suspend (BTW, it's also necesary for
> the suspend to RAM).
I now noticed that this is documented in the help text of i386's
Kconfig. But it is not mentioned in the help text of x86_64's Kconfig.
Also, I think that should already be shown in the prompt, not just in
the help text.
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
Subject: i386, x86-64: show that CONFIG_HOTPLUG_CPU is required for suspend on SMP
Point out the non-obvious.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---
arch/i386/Kconfig | 2 +-
arch/x86_64/Kconfig | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
Index: linux/arch/i386/Kconfig
===================================================================
--- linux.orig/arch/i386/Kconfig
+++ linux/arch/i386/Kconfig
@@ -891,7 +891,7 @@ config PHYSICAL_ALIGN
Don't change this unless you know what you are doing.
config HOTPLUG_CPU
- bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
+ bool "Support for suspend on SMP hot-pluggable CPUs (EXPERIMENTAL)"
depends on SMP && HOTPLUG && EXPERIMENTAL && !X86_VOYAGER
---help---
Say Y here to experiment with turning CPUs off and on, and to
Index: linux/arch/x86_64/Kconfig
===================================================================
--- linux.orig/arch/x86_64/Kconfig
+++ linux/arch/x86_64/Kconfig
@@ -428,12 +428,15 @@ config NR_CPUS
memory in the static kernel configuration.
config HOTPLUG_CPU
- bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
+ bool "Support for suspend on SMP and hot-pluggable CPUs (EXPERIMENTAL)"
depends on SMP && HOTPLUG && EXPERIMENTAL
help
Say Y here to experiment with turning CPUs off and on. CPUs
can be controlled through /sys/devices/system/cpu/cpu#.
- Say N if you want to disable CPU hotplug.
+ This is also required for suspend on SMP systems.
+
+ Say N if you want to disable CPU hotplug and don't need to
+ suspend.
config ARCH_ENABLE_MEMORY_HOTPLUG
def_bool y
--
Stefan Richter
-=====-=-=== -=-= =-=--
http://arcgraph.de/sr/
next prev parent reply other threads:[~2007-05-19 23:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <464F53C2.8070802@s5r6.in-berlin.de>
2007-05-19 19:55 ` (fwd) empty /sys/power/state? Stefan Richter
2007-05-19 20:07 ` Stefan Richter
2007-05-19 20:15 ` Stefan Richter
2007-05-19 21:15 ` Alan Stern
2007-05-19 21:39 ` Stefan Richter
2007-05-19 22:53 ` Rafael J. Wysocki
2007-05-19 23:09 ` Stefan Richter
2007-05-19 23:18 ` Stefan Richter
2007-05-19 23:20 ` Rafael J. Wysocki
2007-05-19 23:33 ` Stefan Richter [this message]
2007-05-19 23:49 ` Stefan Richter
2007-05-20 12:36 ` Rafael J. Wysocki
2007-05-20 13:19 ` Stefan Richter
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=tkrat.64219d323de1c016@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=linux-pm@lists.linux-foundation.org \
--cc=rjw@sisk.pl \
/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