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
committerJim Wylder <jwylder@motorola.com>2014-05-12 17:31:26 -0500
commit45c7061a5c2c4ac7e4e2f0c01e2db05e7c4a0b0a (patch)
tree0a4b46cc127ffa00a1090f8d90ca980d3c82add7 /arch/arm/mach-omap2/omap-pm-noop.c
parenta1f7d43b50b0b363463862b6e85dde7cc67bfccf (diff)
downloadolio-linux-3.10-45c7061a5c2c4ac7e4e2f0c01e2db05e7c4a0b0a.tar.xz
olio-linux-3.10-45c7061a5c2c4ac7e4e2f0c01e2db05e7c4a0b0a.zip
IKXCLOCK-1044 arm: omap2: enable OMAP offmode
Move off mode API to prm driver Change-Id: I9b40bd0fc397f618aad0916fe15293516eb93711 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.