mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 18:41:23 +00:00
e446556173
Currently the dtpm supports the CPUs via cpufreq and the energy model. This change provides the same for the device which supports devfreq. Each device supporting devfreq and having an energy model can be added to the hierarchy. The concept is the same as the cpufreq DTPM support: the QoS is used to aggregate the requests and the energy model gives the value of the instantaneous power consumption ponderated by the load of the device. Cc: Chanwoo Choi <cwchoi00@gmail.com> Cc: Lukasz Luba <lukasz.luba@arm.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20220128163537.212248-5-daniel.lezcano@linaro.org
23 lines
442 B
C
23 lines
442 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2022 Linaro Ltd
|
|
*
|
|
* Author: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
*/
|
|
#ifndef ___DTPM_SUBSYS_H__
|
|
#define ___DTPM_SUBSYS_H__
|
|
|
|
extern struct dtpm_subsys_ops dtpm_cpu_ops;
|
|
extern struct dtpm_subsys_ops dtpm_devfreq_ops;
|
|
|
|
struct dtpm_subsys_ops *dtpm_subsys[] = {
|
|
#ifdef CONFIG_DTPM_CPU
|
|
&dtpm_cpu_ops,
|
|
#endif
|
|
#ifdef CONFIG_DTPM_DEVFREQ
|
|
&dtpm_devfreq_ops,
|
|
#endif
|
|
};
|
|
|
|
#endif
|