cpufreq: interactive: Remove first_cpu field
first_cpu field was introduced to handle tunable save and restore, but
later improvements removed the need for it. Remove it from
cpufreq_interactive_cpuinfo struct.
Change-Id: Ib6fd7546451ee537f55d874f93d0e52bec58f124
Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c
index 2475044..5c5f277 100644
--- a/drivers/cpufreq/cpufreq_interactive.c
+++ b/drivers/cpufreq/cpufreq_interactive.c
@@ -1531,7 +1531,6 @@
struct cpufreq_frequency_table *freq_table;
struct cpufreq_interactive_tunables *tunables;
unsigned long flags;
- int first_cpu;
if (have_governor_per_policy())
tunables = policy->governor_data;
@@ -1550,10 +1549,6 @@
return 0;
}
- first_cpu = cpumask_first(policy->related_cpus);
- for_each_cpu(j, policy->related_cpus)
- per_cpu(cpuinfo, j).first_cpu = first_cpu;
-
tunables = restore_tunables(policy);
if (!tunables) {
tunables = alloc_tunable(policy);