PM / devfreq: add support for suspend/resume of a devfreq device
authorLukasz Luba <l.luba@partner.samsung.com>
Wed, 5 Dec 2018 11:05:53 +0000 (12:05 +0100)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 11 Dec 2018 02:09:47 +0000 (11:09 +0900)
commit83f8ca45afbf041e312909f442128b99657d90b7
treed9f1ef6d6749aaaa6963cea58747a8024a24f61e
parent633141721b5bfce7017033a767208af591134b8f
PM / devfreq: add support for suspend/resume of a devfreq device

The patch prepares devfreq device for handling suspend/resume
functionality. The new fields will store needed information during this
process. Devfreq framework handles opp-suspend DT entry and there is no
need of modyfications in the drivers code. It uses atomic variables to
make sure no race condition affects the process.

Suggested-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Suggested-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/devfreq.c
include/linux/devfreq.h