diff options
author | Alex Frid <afrid@nvidia.com> | 2013-12-10 22:29:34 -0800 |
---|---|---|
committer | Diwakar Tundlam <dtundlam@nvidia.com> | 2013-12-13 14:20:27 -0800 |
commit | 2267d376673dd077c51d2e30146053a0fef396d6 (patch) | |
tree | db302a96a3f6f75f3bf09282cc9b1c90dc937c1d /arch/arm/mach-tegra/board-common.c | |
parent | c59d6f5f0aaf47a7d5e6b67804c459b516d170ce (diff) |
ARM: tegra: thermal: Re-factor trip-points APIs
Re-named, and re-arranged trip-points installation interfaces, so that
interface name reflects module/parameter subject to thermal control,
instead of designated thermal zone (the latter may change on different
platforms creating a confusion with old names).
Change-Id: Ie3714d14103b85720598cf9da44e0abf51326ac5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/344606
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-common.c')
-rw-r--r-- | arch/arm/mach-tegra/board-common.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/board-common.c b/arch/arm/mach-tegra/board-common.c index 3c88b9d5be4c..c2595335c7e4 100644 --- a/arch/arm/mach-tegra/board-common.c +++ b/arch/arm/mach-tegra/board-common.c @@ -167,7 +167,7 @@ static void tegra_add_trip_points(struct thermal_trip_info *trips, } } -void tegra_add_cdev_trips(struct thermal_trip_info *trips, int *num_trips) +void tegra_add_all_vmin_trips(struct thermal_trip_info *trips, int *num_trips) { tegra_add_trip_points(trips, num_trips, tegra_dvfs_get_cpu_vmin_cdev()); tegra_add_trip_points(trips, num_trips, @@ -193,9 +193,13 @@ void tegra_add_core_vmin_trips(struct thermal_trip_info *trips, int *num_trips) tegra_dvfs_get_core_vmin_cdev()); } -void tegra_add_tj_trips(struct thermal_trip_info *trips, int *num_trips) +void tegra_add_cpu_vmax_trips(struct thermal_trip_info *trips, int *num_trips) { tegra_add_trip_points(trips, num_trips, tegra_dvfs_get_cpu_vmax_cdev()); +} + +void tegra_add_core_edp_trips(struct thermal_trip_info *trips, int *num_trips) +{ tegra_add_trip_points(trips, num_trips, tegra_core_edp_get_cdev()); } @@ -208,7 +212,7 @@ void tegra_add_vc_trips(struct thermal_trip_info *trips, int *num_trips) { tegra_add_trip_points(trips, num_trips, tegra_vc_get_cdev()); } -void tegra_add_tpll_trips(struct thermal_trip_info *trips, int *num_trips) +void tegra_add_core_vmax_trips(struct thermal_trip_info *trips, int *num_trips) { tegra_add_trip_points(trips, num_trips, tegra_dvfs_get_core_vmax_cdev()); |