PM / devfreq: Register devfreq as a cooling device on demand
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 8 Mar 2021 13:30:37 +0000 (14:30 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 9 Mar 2021 06:40:16 +0000 (15:40 +0900)
commit1224451bb6f938023dd7fa4e7ba43bfb185bc9e3
treeb07a6b84d8c641c7eecc92d948344ab47c7d0f09
parentfe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8
PM / devfreq: Register devfreq as a cooling device on demand

Currently the default behavior is to manually having the devfreq
backend to register themselves as a devfreq cooling device.

Instead of adding the code in the drivers for the thermal cooling
device registering, let's provide a flag in the devfreq's profile to
tell the common devfreq code to register the newly created devfreq as
a cooling device.

Suggested-by: Chanwoo Choi <cwchoi00@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/devfreq.c
include/linux/devfreq.h