summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/omap-pm-noop.c
diff options
context:
space:
mode:
authorVladimir Tsunaev <vladimirt@motorola.com>2014-05-09 13:27:10 -0400
committerVladimir Tsunaev <vladimirt@motorola.com>2014-05-12 19:25:44 -0400
commitead078965f30f53417abd061c97a1b79cf1e8c09 (patch)
tree537b75fd57a8205980a8b9051add957eeb362cfc /arch/arm/mach-omap2/omap-pm-noop.c
parentd66490d3fffd8763f7754faa6bef0da78ce57f3a (diff)
downloadolio-linux-3.10-ead078965f30f53417abd061c97a1b79cf1e8c09.tar.xz
olio-linux-3.10-ead078965f30f53417abd061c97a1b79cf1e8c09.zip
IKXCLOCK-1044 arm: omap2: enable OMAP offmode
Move off mode API to prm driver. Change-Id: Ib6c32e9f8a24a4350e16b03c9ce3777c3985423d Signed-off-by: Vladimir Tsunaev <vladimirt@motorola.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap-pm-noop.c')
-rw-r--r--arch/arm/mach-omap2/omap-pm-noop.c29
1 files changed, 4 insertions, 25 deletions
diff --git a/arch/arm/mach-omap2/omap-pm-noop.c b/arch/arm/mach-omap2/omap-pm-noop.c
index 6a3be2bebdd..aeb217bfab1 100644
--- a/arch/arm/mach-omap2/omap-pm-noop.c
+++ b/arch/arm/mach-omap2/omap-pm-noop.c
@@ -25,7 +25,6 @@
#include "omap_device.h"
#include "omap-pm.h"
-static bool off_mode_enabled;
static int dummy_context_loss_counter;
/*
@@ -281,28 +280,6 @@ unsigned long omap_pm_cpu_get_freq(void)
return 0;
}
-/**
- * omap_pm_enable_off_mode - notify OMAP PM that off-mode is enabled
- *
- * Intended for use only by OMAP PM core code to notify this layer
- * that off mode has been enabled.
- */
-void omap_pm_enable_off_mode(void)
-{
- off_mode_enabled = true;
-}
-
-/**
- * omap_pm_disable_off_mode - notify OMAP PM that off-mode is disabled
- *
- * Intended for use only by OMAP PM core code to notify this layer
- * that off mode has been disabled.
- */
-void omap_pm_disable_off_mode(void)
-{
- off_mode_enabled = false;
-}
-
/*
* Device context loss tracking
*/
@@ -320,12 +297,14 @@ int omap_pm_get_dev_context_loss_count(struct device *dev)
if (dev->pm_domain == &omap_device_pm_domain) {
count = omap_device_get_context_loss_count(pdev);
} else {
- WARN_ONCE(off_mode_enabled, "omap_pm: using dummy context loss counter; device %s should be converted to omap_device",
+ WARN_ONCE(omap_pm_get_off_mode(),
+ "omap_pm: using dummy context loss counter; device %s "
+ "should be converted to omap_device",
dev_name(dev));
count = dummy_context_loss_counter;
- if (off_mode_enabled) {
+ if (omap_pm_get_off_mode()) {
count++;
/*
* Context loss count has to be a non-negative value.