diff options
author | Amit Kucheria <amit.kucheria@linaro.org> | 2019-01-30 10:52:01 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-01-30 23:02:26 +0100 |
commit | 5c238a8b599f1ae25eaeb08ad0e9e13e2b9eb023 (patch) | |
tree | 412148153b9e0e45fff6b89a4c287809f8d5b789 /arch/m68k/coldfire/stmark2.c | |
parent | afa1f2ab43d48d0e1fa1bda524a0cf53e4cd6c87 (diff) | |
download | talos-op-linux-5c238a8b599f1ae25eaeb08ad0e9e13e2b9eb023.tar.gz talos-op-linux-5c238a8b599f1ae25eaeb08ad0e9e13e2b9eb023.zip |
cpufreq: Auto-register the driver as a thermal cooling device if asked
All cpufreq drivers do similar things to register as a cooling device.
Provide a cpufreq driver flag so drivers can just ask the cpufreq core
to register the cooling device on their behalf. This allows us to get
rid of duplicated code in the drivers.
In order to allow this, we add a struct thermal_cooling_device pointer
to struct cpufreq_policy so that drivers don't need to store it in a
private data structure.
Suggested-by: Stephen Boyd <swboyd@chromium.org>
Suggested-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Tested-by: Matthias Kaehlcke <mka@chromium.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/m68k/coldfire/stmark2.c')
0 files changed, 0 insertions, 0 deletions