[COMMON] cpufreq: acme: Change debug from ess to dss.
authorlakkyung.jung <lakkyung.jung@samsung.com>
Tue, 15 May 2018 08:17:29 +0000 (17:17 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:37:38 +0000 (17:37 +0900)
Change-Id: I257604fe3dba493a53d94406fec2c8f08beff831
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
drivers/cpufreq/exynos-acme.c

index 4d93cb523cdc588693b0e7fd5f3774fac87f03f2..959a2220b160ad903cdf627d2a5624ab8a669682 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/cpumask.h>
 #include <linux/cpufreq.h>
 #include <linux/pm_qos.h>
-#include <linux/exynos-ss.h>
+#include <linux/debug-snapshot.h>
 #include <linux/pm_opp.h>
 #include <linux/cpu_cooling.h>
 #include <linux/suspend.h>
@@ -169,16 +169,16 @@ static int set_freq(struct exynos_cpufreq_domain *domain,
        if (domain->need_awake)
                disable_power_mode(cpumask_any(&domain->cpus), POWERMODE_TYPE_CLUSTER);
 
-       exynos_ss_printk("ID %d: %d -> %d (%d)\n",
-               domain->id, domain->old, target_freq, ESS_FLAG_IN);
+       dbg_snapshot_printk("ID %d: %d -> %d (%d)\n",
+               domain->id, domain->old, target_freq, DSS_FLAG_IN);
 
        err = cal_dfs_set_rate(domain->cal_id, target_freq);
        if (err < 0)
                pr_err("failed to scale frequency of domain%d (%d -> %d)\n",
                        domain->id, domain->old, target_freq);
 
-       exynos_ss_printk("ID %d: %d -> %d (%d)\n",
-               domain->id, domain->old, target_freq, ESS_FLAG_OUT);
+       dbg_snapshot_printk("ID %d: %d -> %d (%d)\n",
+               domain->id, domain->old, target_freq, DSS_FLAG_OUT);
 
        if (domain->need_awake)
                enable_power_mode(cpumask_any(&domain->cpus), POWERMODE_TYPE_CLUSTER);
@@ -235,7 +235,7 @@ static int scale(struct exynos_cpufreq_domain *domain,
        };
 
        cpufreq_freq_transition_begin(policy, &freqs);
-       exynos_ss_freq(domain->id, domain->old, target_freq, ESS_FLAG_IN);
+       dbg_snapshot_freq(domain->id, domain->old, target_freq, DSS_FLAG_IN);
 
        ret = pre_scale();
        if (ret)
@@ -252,8 +252,8 @@ static int scale(struct exynos_cpufreq_domain *domain,
 
 fail_scale:
        /* In scaling failure case, logs -1 to exynos snapshot */
-       exynos_ss_freq(domain->id, domain->old, target_freq,
-                                       ret < 0 ? ret : ESS_FLAG_OUT);
+       dbg_snapshot_freq(domain->id, domain->old, target_freq,
+                                       ret < 0 ? ret : DSS_FLAG_OUT);
        cpufreq_freq_transition_end(policy, &freqs, ret);
 
        return ret;