mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 4/4] PM / devfreq: Consider hibernation in pm notifier
@ 2013-11-19 13:30 Jonghwan Choi
  2013-11-19 14:50 ` Bartlomiej Zolnierkiewicz
  2013-11-20  9:46 ` MyungJoo Ham
  0 siblings, 2 replies; 5+ messages in thread
From: Jonghwan Choi @ 2013-11-19 13:30 UTC (permalink / raw)
  To: Rafael J. Wysocki, MyungJoo Ham, Kukjin Kim
  Cc: linux-kernel, linux-samsung-soc, Jonghwan Choi

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-20  9:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-19 13:30 [PATCH 4/4] PM / devfreq: Consider hibernation in pm notifier Jonghwan Choi
2013-11-19 14:50 ` Bartlomiej Zolnierkiewicz
2013-11-19 22:08   ` Sebastian Capella
2013-11-20  9:51     ` MyungJoo Ham
2013-11-20  9:46 ` MyungJoo Ham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®