As we introduced the idle injection cooling device called cpuidle_cooling, let's be consistent and rename the cpu_cooling to cpufreq_cooling as this one mitigates with OPPs changes.
Unified · Split
| @@ -67,7 +67,7 @@ TMU driver description: · 66 unmodified lines | |||
| 67 | The exynos thermal driver is structured as:: | 67 | The exynos thermal driver is structured as:: |
| 68 | 68 | ||
| 69 | Kernel Core thermal framework | 69 | Kernel Core thermal framework |
| 70 | (thermal_core.c, step_wise.c, cpu_cooling.c) | 70 | (thermal_core.c, step_wise.c, cpufreq_cooling.c) |
| 71 | ^ | 71 | ^ |
| 72 | | | 72 | | |
| 73 | | | 73 | | |
| @@ -16349,7 +16349,7 @@ L: linux-pm@vger.kernel.org · 16348 unmodified lines | |||
| 16349 | S: Supported | 16349 | S: Supported |
| 16350 | F: Documentation/driver-api/thermal/cpu-cooling-api.rst | 16350 | F: Documentation/driver-api/thermal/cpu-cooling-api.rst |
| 16351 | F: Documentation/driver-api/thermal/cpu-idle-cooling.rst | 16351 | F: Documentation/driver-api/thermal/cpu-idle-cooling.rst |
| 16352 | F: drivers/thermal/cpu_cooling.c | 16352 | F: drivers/thermal/cpufreq_cooling.c |
| 16353 | F: drivers/thermal/cpuidle_cooling.c | 16353 | F: drivers/thermal/cpuidle_cooling.c |
| 16354 | F: include/linux/cpu_cooling.h | 16354 | F: include/linux/cpu_cooling.h |
| 16355 | 16355 | ||
| @@ -19,7 +19,7 @@ thermal_sys-$(CONFIG_THERMAL_GOV_USER_SPACE) += user_space.o · 18 unmodified lines | |||
| 19 | thermal_sys-$(CONFIG_THERMAL_GOV_POWER_ALLOCATOR) += power_allocator.o | 19 | thermal_sys-$(CONFIG_THERMAL_GOV_POWER_ALLOCATOR) += power_allocator.o |
| 20 | 20 | ||
| 21 | # cpufreq cooling | 21 | # cpufreq cooling |
| 22 | thermal_sys-$(CONFIG_CPU_FREQ_THERMAL) += cpu_cooling.o | 22 | thermal_sys-$(CONFIG_CPU_FREQ_THERMAL) += cpufreq_cooling.o |
| 23 | thermal_sys-$(CONFIG_CPU_IDLE_THERMAL) += cpuidle_cooling.o | 23 | thermal_sys-$(CONFIG_CPU_IDLE_THERMAL) += cpuidle_cooling.o |
| 24 | 24 | ||
| 25 | # clock cooling | 25 | # clock cooling |
| @@ -7,7 +7,7 @@ · 6 unmodified lines | |||
| 7 | * Copyright (C) 2013 Texas Instruments Inc. | 7 | * Copyright (C) 2013 Texas Instruments Inc. |
| 8 | * Contact: Eduardo Valentin <eduardo.valentin@ti.com> | 8 | * Contact: Eduardo Valentin <eduardo.valentin@ti.com> |
| 9 | * | 9 | * |
| 10 | * Highly based on cpu_cooling.c. | 10 | * Highly based on cpufreq_cooling.c. |
| 11 | * Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com) | 11 | * Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com) |
| 12 | * Copyright (C) 2012 Amit Daniel <amit.kachhap@linaro.org> | 12 | * Copyright (C) 2012 Amit Daniel <amit.kachhap@linaro.org> |
| 13 | */ | 13 | */ |
| @@ -1,6 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* | 2 | /* |
| 3 | * linux/drivers/thermal/cpu_cooling.c | 3 | * linux/drivers/thermal/cpufreq_cooling.c |
| 4 | * | 4 | * |
| 5 | * Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com) | 5 | * Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com) |
| 6 | * | 6 | * |
| @@ -621,7 +621,7 @@ of_cpufreq_cooling_register(struct cpufreq_policy *policy) · 614 unmodified lines | |||
| 621 | struct thermal_cooling_device *cdev = NULL; | 621 | struct thermal_cooling_device *cdev = NULL; |
| 622 | 622 | ||
| 623 | if (!np) { | 623 | if (!np) { |
| 624 | pr_err("cpu_cooling: OF node not available for cpu%d\n", | 624 | pr_err("cpufreq_cooling: OF node not available for cpu%d\n", |
| 625 | policy->cpu); | 625 | policy->cpu); |
| 626 | return NULL; | 626 | return NULL; |
| 627 | } | 627 | } |
| @@ -631,7 +631,7 @@ of_cpufreq_cooling_register(struct cpufreq_policy *policy) · 3 unmodified lines | |||
| 631 | 631 | ||
| 632 | cdev = __cpufreq_cooling_register(np, policy, em); | 632 | cdev = __cpufreq_cooling_register(np, policy, em); |
| 633 | if (IS_ERR(cdev)) { | 633 | if (IS_ERR(cdev)) { |
| 634 | pr_err("cpu_cooling: cpu%d failed to register as cooling device: %ld\n", | 634 | pr_err("cpufreq_cooling: cpu%d failed to register as cooling device: %ld\n", |
| 635 | policy->cpu, PTR_ERR(cdev)); | 635 | policy->cpu, PTR_ERR(cdev)); |
| 636 | cdev = NULL; | 636 | cdev = NULL; |
| 637 | } | 637 | } |
| @@ -7,7 +7,7 @@ · 6 unmodified lines | |||
| 7 | * Copyright (C) 2013 Texas Instruments Inc. | 7 | * Copyright (C) 2013 Texas Instruments Inc. |
| 8 | * Contact: Eduardo Valentin <eduardo.valentin@ti.com> | 8 | * Contact: Eduardo Valentin <eduardo.valentin@ti.com> |
| 9 | * | 9 | * |
| 10 | * Highly based on cpu_cooling.c. | 10 | * Highly based on cpufreq_cooling.c. |
| 11 | * Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com) | 11 | * Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com) |
| 12 | * Copyright (C) 2012 Amit Daniel <amit.kachhap@linaro.org> | 12 | * Copyright (C) 2012 Amit Daniel <amit.kachhap@linaro.org> |
| 13 | */ | 13 | */ |