summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/powerdomain.h
diff options
context:
space:
mode:
authorKevin Hilman <khilman@deeprootsystems.com>2010-12-21 21:31:55 -0700
committerPaul Walmsley <paul@pwsan.com>2010-12-21 21:31:55 -0700
commit7f595674e08b8b4d3faf64a19bccc95445d7ed35 (patch)
treebbd97c930eb170b877a5d6c35e9bc9ec206a9559 /arch/arm/mach-omap2/powerdomain.h
parent0a01aa211da8530dc6a3ff3a725f2edd3464c46f (diff)
downloadblackbird-op-linux-7f595674e08b8b4d3faf64a19bccc95445d7ed35.tar.gz
blackbird-op-linux-7f595674e08b8b4d3faf64a19bccc95445d7ed35.zip
OMAP2+: powerdomain: add API to get context loss count
Add new powerdomain API u32 pwrdm_get_context_loss_count(struct powerdomain *pwrdm) for checking how many times the powerdomain has lost context. The loss count is the sum of the powerdomain off-mode counter, the logic off counter and the per-bank memory off counter. Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com> [paul@pwsan.com: removed bogus return value on error; improved kerneldoc; tweaked commit message] Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/powerdomain.h')
-rw-r--r--arch/arm/mach-omap2/powerdomain.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/powerdomain.h b/arch/arm/mach-omap2/powerdomain.h
index 35b5b4800a43..c66431edfeb7 100644
--- a/arch/arm/mach-omap2/powerdomain.h
+++ b/arch/arm/mach-omap2/powerdomain.h
@@ -211,6 +211,7 @@ int pwrdm_clkdm_state_switch(struct clockdomain *clkdm);
int pwrdm_pre_transition(void);
int pwrdm_post_transition(void);
int pwrdm_set_lowpwrstchange(struct powerdomain *pwrdm);
+u32 pwrdm_get_context_loss_count(struct powerdomain *pwrdm);
extern void omap2xxx_powerdomains_init(void);
extern void omap3xxx_powerdomains_init(void);
OpenPOWER on IntegriCloud