Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c418ff0 authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki
Browse files

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: default avatarPrarit Bhargava <prarit@redhat.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 50941607
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -1086,10 +1086,7 @@ static int update_policy_cpu(struct cpufreq_policy *policy, unsigned int cpu,
	}
	}


	down_write(&policy->rwsem);
	down_write(&policy->rwsem);

	policy->last_cpu = policy->cpu;
	policy->cpu = cpu;
	policy->cpu = cpu;

	up_write(&policy->rwsem);
	up_write(&policy->rwsem);


	blocking_notifier_call_chain(&cpufreq_policy_notifier_list,
	blocking_notifier_call_chain(&cpufreq_policy_notifier_list,
+0 −2
Original line number Original line Diff line number Diff line
@@ -66,8 +66,6 @@ struct cpufreq_policy {
	unsigned int		shared_type; /* ACPI: ANY or ALL affected CPUs
	unsigned int		shared_type; /* ACPI: ANY or ALL affected CPUs
						should set cpufreq */
						should set cpufreq */
	unsigned int		cpu;    /* cpu nr of CPU managing this policy */
	unsigned int		cpu;    /* cpu nr of CPU managing this policy */
	unsigned int		last_cpu; /* cpu nr of previous CPU that managed
					   * this policy */
	struct clk		*clk;
	struct clk		*clk;
	struct cpufreq_cpuinfo	cpuinfo;/* see above */
	struct cpufreq_cpuinfo	cpuinfo;/* see above */