From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Andrew Morton <akpm@osdl.org>
Cc: LKML <linux-kernel@vger.kernel.org>, Pavel Machek <pavel@ucw.cz>
Subject: Re: [PATCH 3/3] PM: Remove PM_TRACE from Kconfig
Date: Thu, 17 Aug 2006 07:32:39 +0200 [thread overview]
Message-ID: <200608170732.40048.rjw@sisk.pl> (raw)
In-Reply-To: <20060816145242.32faa669.akpm@osdl.org>
On Wednesday 16 August 2006 23:52, Andrew Morton wrote:
> On Wed, 16 Aug 2006 23:05:33 +0200
> "Rafael J. Wysocki" <rjw@sisk.pl> wrote:
>
> > Remove the CONFIG_PM_TRACE option, which is dangerous and should only be used
> > by people who know exactly what they are doing, from kernel/power/Kconfig .
> >
> > Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
> > Acked-by: Pavel Machek <pavel@ucw.cz>
> > ---
> > kernel/power/Kconfig | 18 ------------------
> > 1 files changed, 18 deletions(-)
> >
> > Index: linux-2.6.18-rc4-mm1/kernel/power/Kconfig
> > ===================================================================
> > --- linux-2.6.18-rc4-mm1.orig/kernel/power/Kconfig
> > +++ linux-2.6.18-rc4-mm1/kernel/power/Kconfig
> > @@ -47,24 +47,6 @@ config PM_DISABLE_CONSOLE_SUSPEND
> > suspend/resume routines, but may itself lead to problems, for example
> > if netconsole is used.
> >
> > -config PM_TRACE
> > - bool "Suspend/resume event tracing"
> > - depends on PM && PM_DEBUG && X86_32 && EXPERIMENTAL
> > - default n
> > - ---help---
> > - This enables some cheesy code to save the last PM event point in the
> > - RTC across reboots, so that you can debug a machine that just hangs
> > - during suspend (or more commonly, during resume).
> > -
> > - To use this debugging feature you should attempt to suspend the machine,
> > - then reboot it, then run
> > -
> > - dmesg -s 1000000 | grep 'hash matches'
> > -
> > - CAUTION: this option will cause your machine's real-time clock to be
> > - set to an invalid time after a resume.
> > -
> > -
> > config SOFTWARE_SUSPEND
> > bool "Software Suspend"
> > depends on PM && SWAP && (X86 && (!SMP || SUSPEND_SMP)) || ((FRV || PPC32) && !SMP)
>
> So... how are people supposed to turn it on again? By patching the
> kernel? That's a bit painful if they're using (say) fedora-of-the-day.
>
> How about we add a kernel boot parameter to enable it at runtime?
I'm considering a sysfs attribute in /sys/power .
If PM_TRACE is compiled in, an attribute, say "pm_trace", shows up in sysfs
which is initially set to 0 and the user has to explicitly set it to 1 to
enable the feature? Pavel, what do you think?
Rafael
--
You never change things by fighting the existing reality.
R. Buckminster Fuller
next prev parent reply other threads:[~2006-08-17 5:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-16 20:59 [PATCH 0/3] PM: Use suspend_console in swsusp and make it configureable Rafael J. Wysocki
2006-08-16 21:00 ` [PATCH 1/3] swsusp: Use suspend_console Rafael J. Wysocki
2006-08-16 21:02 ` [PATCH 2/3] PM: Make it possible to disable console suspending Rafael J. Wysocki
2006-08-16 21:05 ` [PATCH 3/3] PM: Remove PM_TRACE from Kconfig Rafael J. Wysocki
2006-08-16 21:52 ` Andrew Morton
2006-08-16 22:02 ` Pavel Machek
2006-08-17 5:32 ` Rafael J. Wysocki [this message]
2006-08-17 9:14 ` Pavel Machek
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=200608170732.40048.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
/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