Messages in this thread Patch in this message | | | From | Jonghwan Choi <> | Subject | [PATCH 4/4] PM / devfreq: Consider hibernation in pm notifier | Date | Tue, 19 Nov 2013 22:30:31 +0900 |
| |
Frequency lock should be considered in suspend/hibernation.
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com> --- drivers/devfreq/exynos/exynos5_bus.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/devfreq/exynos/exynos5_bus.c b/drivers/devfreq/exynos/exynos5_bus.c index a60da3c..bd672de0 100644 --- a/drivers/devfreq/exynos/exynos5_bus.c +++ b/drivers/devfreq/exynos/exynos5_bus.c @@ -268,6 +268,7 @@ static int exynos5_busfreq_int_pm_notifier_event(struct notifier_block *this, int err = 0; switch (event) { + case PM_HIBERNATION_PREPARE: case PM_SUSPEND_PREPARE: /* Set Fastest and Deactivate DVFS */ mutex_lock(&data->lock); @@ -300,6 +301,7 @@ unlock: if (err) return NOTIFY_BAD; return NOTIFY_OK; + case PM_POST_HIBERNATION: case PM_POST_RESTORE: case PM_POST_SUSPEND: /* Reactivate */ -- 1.8.1.2
| |