summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/cpufreq_stats.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2020-10-05 13:26:04 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-10-05 15:13:43 +0200
commit96f60cddf7a1c5374296dd14355b519ee3245b3e (patch)
treee2c39001bae58f21db2584309084f6fb28dcee3b /drivers/cpufreq/cpufreq_stats.c
parent4958b46efb6df20fa3abb3a4d007515485f6af16 (diff)
downloadlwn-96f60cddf7a1c5374296dd14355b519ee3245b3e.tar.gz
lwn-96f60cddf7a1c5374296dd14355b519ee3245b3e.zip
cpufreq: stats: Enable stats for fast-switch as well
Now that all the blockers are gone for enabling stats in fast-switching case, enable it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_stats.c')
-rw-r--r--drivers/cpufreq/cpufreq_stats.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c
index bba04da3a278..8e7d64f34041 100644
--- a/drivers/cpufreq/cpufreq_stats.c
+++ b/drivers/cpufreq/cpufreq_stats.c
@@ -69,9 +69,6 @@ static ssize_t show_time_in_state(struct cpufreq_policy *policy, char *buf)
ssize_t len = 0;
int i;
- if (policy->fast_switch_enabled)
- return 0;
-
for (i = 0; i < stats->state_num; i++) {
if (pending) {
if (i == stats->last_index)
@@ -115,9 +112,6 @@ static ssize_t show_trans_table(struct cpufreq_policy *policy, char *buf)
ssize_t len = 0;
int i, j, count;
- if (policy->fast_switch_enabled)
- return 0;
-
len += scnprintf(buf + len, PAGE_SIZE - len, " From : To\n");
len += scnprintf(buf + len, PAGE_SIZE - len, " : ");
for (i = 0; i < stats->state_num; i++) {