PM / devfreq: Add new DEVFREQ_TRANSITION_NOTIFIER notifier
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 26 Jan 2016 04:21:26 +0000 (13:21 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 3 May 2016 02:20:07 +0000 (11:20 +0900)
commit0fe3a66410a3ba96679be903f1e287d7a0a264a9
tree1ce223e8508fce15daebc93b6ce511721e418fc9
parent8f510aeb223b26c4ffbece9fa92e4befea470f57
PM / devfreq: Add new DEVFREQ_TRANSITION_NOTIFIER notifier

This patch adds the new DEVFREQ_TRANSITION_NOTIFIER notifier to send
the notification when the frequency of device is changed.
This notifier has two state as following:
- DEVFREQ_PRECHANGE  : Notify it before chaning the frequency of device
- DEVFREQ_POSTCHANGE : Notify it after changed the frequency of device

And this patch adds the resourced-managed function to release the resource
automatically when error happen.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
[m.reichl and linux.amoon: Tested it on exynos4412-odroidu3 board]
Tested-by: Markus Reichl <m.reichl@fivetechno.de>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
drivers/devfreq/devfreq.c
include/linux/devfreq.h