summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongil Park <dongil01.park@samsung.com>2016-06-10 17:27:56 +0900
committerjino.cho <jino.cho@samsung.com>2017-03-03 17:02:44 +0900
commit642f6f62a65efdb97bae808e0d4a87db71e49417 (patch)
tree128bcc49ad0a0e779d9fdc20ee4fd495d8661ff3
parentbe9b9226fb4bf7f248a5fc96a5e65ad89cb9d73c (diff)
downloadlinux-3.10-artik-642f6f62a65efdb97bae808e0d4a87db71e49417.tar.gz
linux-3.10-artik-642f6f62a65efdb97bae808e0d4a87db71e49417.tar.bz2
linux-3.10-artik-642f6f62a65efdb97bae808e0d4a87db71e49417.zip
PM / devfreq: exynos5422: remove unused frequiencies
This patch removes unused frequencies for exynos5422 and correct time_in_state following the changes. Change-Id: I7e59ae5486eb6b87025eef0a57abac4393685bfa Signed-off-by: Dongil Park <dongil01.park@samsung.com>
-rw-r--r--drivers/devfreq/exynos5422_bus_int.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/devfreq/exynos5422_bus_int.c b/drivers/devfreq/exynos5422_bus_int.c
index 4c6e6a3e1af..c6e6d79be19 100644
--- a/drivers/devfreq/exynos5422_bus_int.c
+++ b/drivers/devfreq/exynos5422_bus_int.c
@@ -97,13 +97,7 @@ struct int_bus_opp_table {
};
struct int_bus_opp_table int_bus_opp_list[] = {
- {LV_0, 600000, 1075000, 0}, /* ISP Special Level */
- {LV_1, 500000, 987500, 0}, /* ISP Special Level */
- {LV_1_1, 480000, 987500, 0}, /* ISP Special Level */
- {LV_1_2, 460000, 987500, 0}, /* ISP Special Level */
- {LV_1_3, 440000, 987500, 0}, /* ISP Special Level */
#ifdef CONFIG_SOC_EXYNOS5422_REV_0
- {LV_2, 420000, 987500, 0}, /* UHD play */
{LV_3, 400000, 987500, 0},
{LV_4, 333000, 950000, 0},
{LV_5, 222000, 950000, 0},
@@ -932,7 +926,7 @@ static void exynos5_int_update_state(unsigned int target_freq)
*/
for (i = LV_0; i < LV_END; i++) {
if (int_bus_opp_list[i].freq == target_freq)
- target_idx = int_bus_opp_list[i].idx;
+ target_idx = i;
}
tmp_cputime = cur_time - int_pre_time;
@@ -1132,9 +1126,11 @@ static ssize_t int_show_state(struct device *dev, struct device_attribute *attr,
unsigned int i;
ssize_t len = 0;
ssize_t write_cnt = (ssize_t)((PAGE_SIZE / LV_END) - 2);
+ int count = opp_get_opp_count(dev->parent);
- for (i = LV_0; i < LV_END; i++)
- len += snprintf(buf + len, write_cnt, "%ld %llu\n", int_bus_opp_list[i].freq,
+ for (i = LV_0; i < count; i++)
+ len += snprintf(buf + len, PAGE_SIZE - len, "%lu %llu\n",
+ int_bus_opp_list[i].freq,
(unsigned long long)int_bus_opp_list[i].time_in_state);
return len;
@@ -1437,6 +1433,7 @@ static int exynos5_devfreq_int_probe(struct platform_device *pdev)
}
data->devfreq->max_freq = 400000;
+ data->devfreq->min_freq = 222000;
devfreq_register_opp_notifier(dev, data->devfreq);
/* Create file for time_in_state */