Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

thermal/drivers/cpu_cooling: Rename to cpufreq_cooling

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.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Link: https://lore.kernel.org/r/20191219225317.17158-3-daniel.lezcano@linaro.org

+8 -8
+1 -1
Documentation/driver-api/thermal/exynos_thermal.rst
··· 67 67 The exynos thermal driver is structured as:: 68 68 69 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 |
+1 -1
MAINTAINERS
··· 16349 16349 S: Supported 16350 16350 F: Documentation/driver-api/thermal/cpu-cooling-api.rst 16351 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 16353 F: drivers/thermal/cpuidle_cooling.c 16354 16354 F: include/linux/cpu_cooling.h 16355 16355
+1 -1
drivers/thermal/Makefile
··· 19 19 thermal_sys-$(CONFIG_THERMAL_GOV_POWER_ALLOCATOR) += power_allocator.o 20 20 21 21 # cpufreq cooling 22 - thermal_sys-$(CONFIG_CPU_FREQ_THERMAL) += cpu_cooling.o 22 + thermal_sys-$(CONFIG_CPU_FREQ_THERMAL) += cpufreq_cooling.o 23 23 thermal_sys-$(CONFIG_CPU_IDLE_THERMAL) += cpuidle_cooling.o 24 24 25 25 # clock cooling
+1 -1
drivers/thermal/clock_cooling.c
··· 7 7 * Copyright (C) 2013 Texas Instruments Inc. 8 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 11 * Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com) 12 12 * Copyright (C) 2012 Amit Daniel <amit.kachhap@linaro.org> 13 13 */
+3 -3
drivers/thermal/cpu_cooling.c drivers/thermal/cpufreq_cooling.c
··· 1 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 5 * Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com) 6 6 * ··· 621 621 struct thermal_cooling_device *cdev = NULL; 622 622 623 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 625 policy->cpu); 626 626 return NULL; 627 627 } ··· 631 631 632 632 cdev = __cpufreq_cooling_register(np, policy, em); 633 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 635 policy->cpu, PTR_ERR(cdev)); 636 636 cdev = NULL; 637 637 }
+1 -1
include/linux/clock_cooling.h
··· 7 7 * Copyright (C) 2013 Texas Instruments Inc. 8 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 11 * Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com) 12 12 * Copyright (C) 2012 Amit Daniel <amit.kachhap@linaro.org> 13 13 */