summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/nvrm_user.c
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2010-11-25 20:56:57 -0800
committerNiket Sirsi <nsirsi@nvidia.com>2010-11-30 17:51:46 -0800
commit01a0b8146665a17dd063b4b8e2fe80e5bd795c22 (patch)
treef27dd34ebd14daa24d25f7c6de9240194cab54df /arch/arm/mach-tegra/nvrm_user.c
parenta735cfb19d8e974fe4111b0686e78ebbb1bf43ca (diff)
[ARM/tegra] RM: Stopped DVFS in PM_SUSPEND_PREPARE.
Bug 760630 Change-Id: If5e4ac1045cdb46d12a03bf47f24fb712fdbd11e Reviewed-on: http://git-master/r/11632 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/nvrm_user.c')
-rw-r--r--arch/arm/mach-tegra/nvrm_user.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/nvrm_user.c b/arch/arm/mach-tegra/nvrm_user.c
index db46298bd82d..97e425b46dfd 100644
--- a/arch/arm/mach-tegra/nvrm_user.c
+++ b/arch/arm/mach-tegra/nvrm_user.c
@@ -63,6 +63,8 @@ static long nvrm_unlocked_ioctl(struct file *file,
unsigned int cmd, unsigned long arg);
static int nvrm_mmap(struct file *file, struct vm_area_struct *vma);
extern void reset_cpu(unsigned int cpu, unsigned int reset);
+extern void NvRmPrivDvsStop(void);
+extern void NvRmPrivDvsRun(void);
//Variables for AVP suspend operation
extern NvRmDeviceHandle s_hRmGlobal;
@@ -611,12 +613,14 @@ int tegra_pm_notifier(struct notifier_block *nb,
notify_daemon(STRING_PM_DISPLAY_OFF);
#endif
notify_daemon(STRING_PM_SUSPEND_PREPARE);
+ NvRmPrivDvsStop();
break;
case PM_POST_SUSPEND:
notify_daemon(STRING_PM_POST_SUSPEND);
#ifndef CONFIG_HAS_EARLYSUSPEND
notify_daemon(STRING_PM_DISPLAY_ON);
#endif
+ NvRmPrivDvsRun();
break;
default:
printk(KERN_ERR "%s: unknown event %ld\n", __func__, event);