- 27 Apr, 2013 8 commits
-
-
Eduardo Valentin authored
To improve code readiness, change the way the lines are broken in this file. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Improve code readiness by changing alignments so that they match open parenthesis, like checkpatch.pl --strict suggests. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Simple code style fix. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Remove unnecessary blank line. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Improve code readiness by remove checkpatch.pl warnings on get_property function. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
There are at least three patterns for oneline comments in this file. This patch changes them to one single pattern Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Just for code readiness, this patch makes all functions on this file to have a blank line before their returns. Now, some functions follow this pattern, and others will not have a blank line. So, this patch makes it a single pattern. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Remove unnecessary white spaces. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
- 24 Apr, 2013 22 commits
-
-
Eduardo Valentin authored
Remove defines that are not in used. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Update header list for cpu_cooling.h. Missing definition of cpumask. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
The list is not needed so far. Thus removing it. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Just for style purposes, remove extra curl brackets. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Limit the amount of bytes written to dev_name by secure writing with snprintf. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Update comments for this exported function. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Add proper documentation for exported function cpufreq_cooling_register. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Update documentation for cpufreq_set_cur_state callback. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Update documentation for cpufreq_get_cur_state callback. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Update documentation for cpufreq_get_max_state callback. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
There is no support for hotplug or any other means of reducing temperature. So, this patch removes these references from Kconfig. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Update kernel-doc comment and documentation for cpufreq_thermal_notifier. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Update kernel-doc comments for cpufreq_apply_cooling function. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Fix kernel-doc warning on get_cpu_frequency and improve documentation comments. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Add documentation for cpufreq_get_cooling_level. As this is an exported function, it has to be documented. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
As this is one of the central functions of this file, it deserves a proper documentation. This patch improves the existing comment to format it as a kernel-doc style. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Update documentation for is_cpufreq_valid function so that kernel-doc does not complain about return value. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
level will be used only if GET_FREQ mode is requested. There is no potential harm with current code. But for cleaning the compilation log, this patch initializes level to zero. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Restrict the usage to GPL modules. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Simple fixes for making kernel_doc happy about struct cpufreq_cooling_device. Includes also a minor spelling fix. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
Remove some unused header files. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Zhang Rui authored
-
- 17 Apr, 2013 1 commit
-
-
Dan Carpenter authored
This code doesn't work on big endian systems because we're storing low values in the high bits of the unsigned long. It makes it a very high value instead. Signed-off-by:
Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
- 15 Apr, 2013 3 commits
-
-
Eduardo Valentin authored
This patch exports the thermal_zone_get_temp API so that driver writers can fetch temperature of thermal zones managed by other drivers. Acked-by:
Durgadoss R <durgadoss.r@intel.com> Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Eduardo Valentin authored
This patch adds a helper function to get a reference of a thermal zone, based on the zone type name. It will perform a zone name lookup and return a reference to a thermal zone device that matches the name requested. In case the zone is not found or when several zones match same name or if the required parameters are invalid, it will return the corresponding error code (ERR_PTR). Cc: Durgadoss R <durgadoss.r@intel.com> Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Durgadoss R <durgadoss.r@intel.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linuxZhang Rui authored
Conflicts: drivers/thermal/cpu_cooling.c
-
- 14 Apr, 2013 2 commits
-
-
Zhang Rui authored
Signed-off-by:
Zhang Rui <rui.zhang@intel.com> Acked-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Durgadoss R <durgadoss.r@intel.com>
-
Zhang Rui authored
The thermal governors are part of the thermal framework, rather than a seperate feature/module. Because the generic thermal layer can not work without thermal governors, and it must load the thermal governors during its initialization. Build them into one module in this patch. This also fix a problem that the generic thermal layer does not work when CONFIG_THERMAL=m and CONFIG_THERMAL_GOV_XXX=y. Signed-off-by:
Zhang Rui <rui.zhang@intel.com> Acked-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Durgadoss R <durgadoss.r@intel.com>
-
- 13 Apr, 2013 1 commit
-
-
Zhang Rui authored
this is the preparation work to build all the thermal core framework source file, like governors, cpu cooling, etc, into one module. No functional change in this patch. Signed-off-by:
Zhang Rui <rui.zhang@intel.com> Acked-by:
Eduardo Valentin <eduardo.valentin@ti.com> Acked-by:
Durgadoss R <durgadoss.r@intel.com>
-
- 11 Apr, 2013 2 commits
-
-
Arnd Bergmann authored
In multiplatform configurations, we cannot include headers provided by only the exynos platform. Fortunately a number of drivers that include those headers do not actually need them, so we can just remove the inclusions. Signed-off-by:
Arnd Bergmann <arnd@arndb.de> Cc: linux-pm@vger.kernel.org Acked-by:
Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
Andrew Bresticker authored
When selecting a target cooling state in get_target_state(), make sure that the state is at least as high as the minimum when the temperature is rising and at least as low as the maximum when the temperature is falling. This is necessary because, in the THREAML_TREND_RAISING and THERMAL_TREND_DROPPING cases, the current state may only be incremented or decremented by one even if it is outside the bounds of the thermal instance. This might occur, for example, if the CPU is heating up and hits a thermal trip point for the first time when it's frequency is much higher than the range specified by the thermal instance corresponding to the trip point. Signed-off-by:
Andrew Bresticker <abrestic@chromium.org> Acked-by:
Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-
- 02 Apr, 2013 1 commit
-
-
Eduardo Valentin authored
Because this feature is for debuging purposes, it is highly recommended to do not enable this on production systems. This patch adds warnings for system integrators, so that people are aware of this potential security issue. Signed-off-by:
Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by:
Zhang Rui <rui.zhang@intel.com>
-