Commit a0349828 authored by Ben Collins's avatar Ben Collins Committed by Linus Torvalds

PM: Do not require dev spew to get PM_DEBUG

In order to enable things like PM_TRACE, you're required to enable
PM_DEBUG, which sends a large spew of messages on boot, and often times can
overflow dmesg buffer.

Create new PM_VERBOSE and shift that to be the option that enables
drivers/base/power's messages.
Signed-off-by: default avatarBen Collins <bcollins@ubuntu.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 328616e3
...@@ -5,6 +5,6 @@ obj-$(CONFIG_PM_TRACE) += trace.o ...@@ -5,6 +5,6 @@ obj-$(CONFIG_PM_TRACE) += trace.o
ifeq ($(CONFIG_DEBUG_DRIVER),y) ifeq ($(CONFIG_DEBUG_DRIVER),y)
EXTRA_CFLAGS += -DDEBUG EXTRA_CFLAGS += -DDEBUG
endif endif
ifeq ($(CONFIG_PM_DEBUG),y) ifeq ($(CONFIG_PM_VERBOSE),y)
EXTRA_CFLAGS += -DDEBUG EXTRA_CFLAGS += -DDEBUG
endif endif
...@@ -33,13 +33,20 @@ config PM_DEBUG ...@@ -33,13 +33,20 @@ config PM_DEBUG
bool "Power Management Debug Support" bool "Power Management Debug Support"
depends on PM depends on PM
---help--- ---help---
This option enables verbose debugging support in the Power Management This option enables various debugging support in the Power Management
code. This is helpful when debugging and reporting various PM bugs, code. This is helpful when debugging and reporting PM bugs, like
like suspend support. suspend support.
config PM_VERBOSE
bool "Verbose Power Management debugging"
depends on PM_DEBUG
default n
---help---
This option enables verbose messages from the Power Management code.
config DISABLE_CONSOLE_SUSPEND config DISABLE_CONSOLE_SUSPEND
bool "Keep console(s) enabled during suspend/resume (DANGEROUS)" bool "Keep console(s) enabled during suspend/resume (DANGEROUS)"
depends on PM && PM_DEBUG depends on PM_DEBUG
default n default n
---help--- ---help---
This option turns off the console suspend mechanism that prevents This option turns off the console suspend mechanism that prevents
...@@ -50,7 +57,7 @@ config DISABLE_CONSOLE_SUSPEND ...@@ -50,7 +57,7 @@ config DISABLE_CONSOLE_SUSPEND
config PM_TRACE config PM_TRACE
bool "Suspend/resume event tracing" bool "Suspend/resume event tracing"
depends on PM && PM_DEBUG && X86_32 && EXPERIMENTAL depends on PM_DEBUG && X86_32 && EXPERIMENTAL
default n default n
---help--- ---help---
This enables some cheesy code to save the last PM event point in the This enables some cheesy code to save the last PM event point in the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment