diff options
| author | Junjie Wu <junjiew@codeaurora.org> | 2015-04-16 11:40:19 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:03:21 -0700 |
| commit | 3c1a0a6645d6804608387fe0dfe72f3d2857ab06 (patch) | |
| tree | e574ca2d58e32cca5306fb35e23f8997a1ea0a99 | |
| parent | fd488c4b4dbd8bd7054f48298170d06ebec1c6b0 (diff) | |
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>
| -rw-r--r-- | drivers/cpufreq/cpufreq_interactive.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c index dd27c5aa9e67..9cb48e09ebad 100644 --- a/drivers/cpufreq/cpufreq_interactive.c +++ b/drivers/cpufreq/cpufreq_interactive.c @@ -1533,7 +1533,6 @@ static int cpufreq_governor_interactive(struct cpufreq_policy *policy, 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; @@ -1552,10 +1551,6 @@ static int cpufreq_governor_interactive(struct cpufreq_policy *policy, 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); |
