]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd989366f8665d796a440dba779a4640e1b7c1d9b
tree1ce223e8508fce15daebc93b6ce511721e418fc9
parentd37d39b4712b097e57bfc94facd3a0c8efd21ad8
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