summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2015-03-17 10:36:17 +0100
committerMyungJoo Ham <myungjoo.ham@samsung.com>2015-03-31 06:17:15 +0200
commit34ed504008b2d8d3578191424fc5cddcb76d69f5 (patch)
tree2fe0ac6e9bddeead301586a1337f0a1198328968
parentPM / devfreq: tegra: Set drvdata before enabling the irq (diff)
downloadlinux-34ed504008b2d8d3578191424fc5cddcb76d69f5.tar.xz
linux-34ed504008b2d8d3578191424fc5cddcb76d69f5.zip
PM / devfreq: tegra: Enable interrupts after resuming the devfreq monitor
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
-rw-r--r--drivers/devfreq/tegra-devfreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/devfreq/tegra-devfreq.c b/drivers/devfreq/tegra-devfreq.c
index 7fa1bd4c431b..8e633a6d775d 100644
--- a/drivers/devfreq/tegra-devfreq.c
+++ b/drivers/devfreq/tegra-devfreq.c
@@ -577,8 +577,8 @@ static int tegra_governor_event_handler(struct devfreq *devfreq,
switch (event) {
case DEVFREQ_GOV_START:
- tegra_actmon_enable_interrupts(tegra);
devfreq_monitor_start(devfreq);
+ tegra_actmon_enable_interrupts(tegra);
break;
case DEVFREQ_GOV_STOP:
@@ -592,8 +592,8 @@ static int tegra_governor_event_handler(struct devfreq *devfreq,
break;
case DEVFREQ_GOV_RESUME:
- tegra_actmon_enable_interrupts(tegra);
devfreq_monitor_resume(devfreq);
+ tegra_actmon_enable_interrupts(tegra);
break;
}