aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-01-06 10:39:08 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-01-23 17:06:44 -0500
commit7c418ff099110d987846c8c670479a3b90ed1dcb (patch)
tree8f0886389f919174ca76387047cbeb4191f989d6 /drivers/cpufreq
parent5094160786ede5c08a6901648787a5bf9b0dc2e1 (diff)
cpufreq: Remove (now) unused 'last_cpu' from struct cpufreq_policy
'last_cpu' was used only from cpufreq-stats and isn't used anymore. Get rid of it. Reviewed-by: Prarit Bhargava <prarit@redhat.com> 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')
-rw-r--r--drivers/cpufreq/cpufreq.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 70b568a253e9..60ef37d569c5 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -1086,10 +1086,7 @@ static int update_policy_cpu(struct cpufreq_policy *policy, unsigned int cpu,
1086 } 1086 }
1087 1087
1088 down_write(&policy->rwsem); 1088 down_write(&policy->rwsem);
1089
1090 policy->last_cpu = policy->cpu;
1091 policy->cpu = cpu; 1089 policy->cpu = cpu;
1092
1093 up_write(&policy->rwsem); 1090 up_write(&policy->rwsem);
1094 1091
1095 blocking_notifier_call_chain(&cpufreq_policy_notifier_list, 1092 blocking_notifier_call_chain(&cpufreq_policy_notifier_list,