-
由 Amit Kucheria 提交于
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: NStephen Boyd <swboyd@chromium.org> Suggested-by: NViresh Kumar <viresh.kumar@linaro.org> Signed-off-by: NAmit Kucheria <amit.kucheria@linaro.org> Reviewed-by: NMatthias Kaehlcke <mka@chromium.org> Tested-by: NMatthias Kaehlcke <mka@chromium.org> Acked-by: NViresh Kumar <viresh.kumar@linaro.org> Reviewed-by: NDaniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
5c238a8b