diff options
| author | Eduardo Valentin <[email protected]> | 2014-12-04 09:41:43 +0530 |
|---|---|---|
| committer | Eduardo Valentin <[email protected]> | 2014-12-08 12:08:53 -0400 |
| commit | 0f1be51c358f740fe5183bd0bcd60076fdfb53d0 (patch) | |
| tree | fcfa99069607e0d7d2562bb7136804b6f94a16db /tools/perf/scripts/python/bin | |
| parent | 88910638717dd195cff1dd1ea74772b159632bba (diff) | |
thermal: cpu_cooling: check for the readiness of cpufreq layer
In this patch, the cpu_cooling code checks for the usability of cpufreq
layer before proceeding with the CPU cooling device registration. The
main reason is: CPU cooling device is not usable if cpufreq cannot
switch frequencies.
Similar checks are spread in thermal drivers. Thus, the advantage now
is to have the check in a single place: cpu cooling device registration.
For this reason, this patch also updates the existing drivers that
depend on CPU cooling to simply propagate the error code of the cpu
cooling registration call. Therefore, in case cpufreq is not ready, the
thermal drivers will still return -EPROBE_DEFER, in an attempt to try
again when cpufreq layer gets ready.
Cc: [email protected]
Cc: Grant Likely <[email protected]>
Cc: Kukjin Kim <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Naveen Krishna Chatradhi <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Zhang Rui <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
Signed-off-by: Eduardo Valentin <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions