linux/include
Amit Kucheria 2b5738267d UPSTREAM: 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>
(cherry picked from commit 5c238a8b59)

Conflicts:
	drivers/cpufreq/cpufreq.c

Change-Id: I18aad43fce69f5a20388078dd5d18877f09839ee
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-06-27 18:10:00 +08:00
..
acpi rk: revert to v4.4 2019-02-10 00:33:21 +08:00
asm-generic ANDROID: add support for clang Control Flow Integrity (CFI) 2019-05-20 17:46:32 -07:00
clocksource rk: revert to v4.4 2019-02-10 00:33:21 +08:00
crypto crypto: speck - remove Speck 2019-04-03 15:25:12 -07:00
drm Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-06-22 22:26:14 +08:00
dt-bindings clk: rockchip: rk3066a: Rename i2s hclk id 2019-04-09 21:35:09 +08:00
keys keys: Fix dependency loop between construction record and auth key 2019-03-23 20:09:48 +01:00
kvm KVM: arm/arm64: vgic: Make vgic_dist->lpi_list_lock a raw_spinlock 2019-03-23 20:09:42 +01:00
linux UPSTREAM: cpufreq: Auto-register the driver as a thermal cooling device if asked 2019-06-27 18:10:00 +08:00
math-emu
media Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-06-22 22:26:14 +08:00
memory
misc Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-02-14 11:48:20 +08:00
net This is the 4.19.52 stable release 2019-06-17 20:02:56 +02:00
pcmcia
ras
rdma rk: revert to v4.4 2019-02-10 00:33:21 +08:00
scsi scsi: fcoe: make use of fip_mode enum complete 2019-04-05 22:33:04 +02:00
soc cpufreq: dt: Fix memory leak when cpu on/off 2019-06-27 18:10:00 +08:00
sound ALSA: compress: Fix stop handling on compressed capture streams 2019-02-12 19:47:23 +01:00
target rk: revert to v4.4 2019-02-10 00:33:21 +08:00
trace Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-06-22 22:26:14 +08:00
uapi Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-06-22 22:26:14 +08:00
video udlfb: introduce a rendering mutex 2019-05-25 18:23:30 +02:00
xen rk: revert to v4.4 2019-02-10 00:33:21 +08:00