Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82375
b: refs/heads/master
c: 90dda1c
h: refs/heads/master
i:
  82373: 6825a03
  82371: 1a1d829
  82367: 681bc99
v: v3
  • Loading branch information
Johannes Berg authored and Len Brown committed Feb 1, 2008
1 parent f267209 commit 79ce713
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce2b7147bb83b7d729b17c1638f092a1bcba4981
refs/heads/master: 90dda1cb6ace6abd777f84bf051c4f86fa58986a
2 changes: 1 addition & 1 deletion trunk/drivers/base/power/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
obj-$(CONFIG_PM) += sysfs.o
obj-$(CONFIG_PM_SLEEP) += main.o
obj-$(CONFIG_PM_TRACE) += trace.o
obj-$(CONFIG_PM_TRACE_RTC) += trace.o

ccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG
ccflags-$(CONFIG_PM_VERBOSE) += -DDEBUG
23 changes: 22 additions & 1 deletion trunk/kernel/power/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,30 @@ config PM_VERBOSE
---help---
This option enables verbose messages from the Power Management code.

config CAN_PM_TRACE
def_bool y
depends on PM_DEBUG && PM_SLEEP && EXPERIMENTAL

config PM_TRACE
bool
help
This enables code to save the last PM event point across
reboot. The architecture needs to support this, x86 for
example does by saving things in the RTC, see below.

The architecture specific code must provide the extern
functions from <linux/resume-trace.h> as well as the
<asm/resume-trace.h> header with a TRACE_RESUME() macro.

The way the information is presented is architecture-
dependent, x86 will print the information during a
late_initcall.

config PM_TRACE_RTC
bool "Suspend/resume event tracing"
depends on PM_DEBUG && X86 && PM_SLEEP && EXPERIMENTAL
depends on CAN_PM_TRACE
depends on X86
select PM_TRACE
default n
---help---
This enables some cheesy code to save the last PM event point in the
Expand Down

0 comments on commit 79ce713

Please sign in to comment.