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

Commit fbaed8cf authored by Junjie Wu's avatar Junjie Wu Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarJunjie Wu <junjiew@codeaurora.org>
parent 485a6189
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1521,7 +1521,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;
@@ -1540,10 +1539,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);