aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm.h
diff options
context:
space:
mode:
authorPeter 'p2' De Schrijver <peter.de-schrijver@nokia.com>2008-10-15 11:13:48 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-09-02 18:08:24 -0400
commit331b93f41dff21c8f95709032cb184fb82bf2003 (patch)
tree6945e875909ae2571bd3344c978395414e61781c /arch/arm/mach-omap2/pm.h
parenta23456e9b02b3fae0fc78cb33fad69803a50e5bc (diff)
OMAP: PM: Add pm-debug counters
This patch provides the debugfs entries and a function which will be called by the PM code to register the time spent per domain per state. Also some new fields are added to the powerdomain struct to keep the time information. NOTE: As of v2.6.29, using getnstimeofday() after drivers are suspended is no longer safe since the timekeeping subsystem is also suspended as part of the suspend process. Instead use sched_clock() which on OMAP returns the 32k SYNC timer in nanoseconds. Also, do not print out status for meta powerdomains (dpll*) Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com> Signed-off-by: Tero Kristo <tero.kristo@nokia.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm.h')
-rw-r--r--arch/arm/mach-omap2/pm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h
index 21201cd4117b..4589db1c8af8 100644
--- a/arch/arm/mach-omap2/pm.h
+++ b/arch/arm/mach-omap2/pm.h
@@ -11,12 +11,16 @@
11#ifndef __ARCH_ARM_MACH_OMAP2_PM_H 11#ifndef __ARCH_ARM_MACH_OMAP2_PM_H
12#define __ARCH_ARM_MACH_OMAP2_PM_H 12#define __ARCH_ARM_MACH_OMAP2_PM_H
13 13
14#include <mach/powerdomain.h>
15
14#ifdef CONFIG_PM_DEBUG 16#ifdef CONFIG_PM_DEBUG
15extern void omap2_pm_dump(int mode, int resume, unsigned int us); 17extern void omap2_pm_dump(int mode, int resume, unsigned int us);
16extern int omap2_pm_debug; 18extern int omap2_pm_debug;
19extern void pm_dbg_update_time(struct powerdomain *pwrdm, int prev);
17#else 20#else
18#define omap2_pm_dump(mode, resume, us) do {} while (0); 21#define omap2_pm_dump(mode, resume, us) do {} while (0);
19#define omap2_pm_debug 0 22#define omap2_pm_debug 0
23#define pm_dbg_update_time(pwrdm, prev) do {} while (0);
20#endif /* CONFIG_PM_DEBUG */ 24#endif /* CONFIG_PM_DEBUG */
21 25
22extern void omap24xx_idle_loop_suspend(void); 26extern void omap24xx_idle_loop_suspend(void);