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

Commit d6a2a217 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clk: qcom: clk-cpu-osm: move set policy->cpu flag to end of init"

parents 8376397f f6bc390d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ struct clk_osm {
	u64 total_cycle_counter;
	u32 prev_cycle_counter;
	unsigned long rate;
	cpumask_t related_cpus;
};

static bool is_sdmshrike;
@@ -560,7 +561,7 @@ static struct clk_osm *osm_configure_policy(struct cpufreq_policy *policy)
		if (parent != c_parent)
			continue;

		cpumask_set_cpu(cpu, policy->cpus);
		cpumask_set_cpu(cpu, &c->related_cpus);
		if (n->core_num == 0)
			first = n;
	}
@@ -688,6 +689,9 @@ static int osm_cpufreq_cpu_init(struct cpufreq_policy *policy)
	policy->dvfs_possible_from_any_cpu = true;
	policy->fast_switch_possible = true;
	policy->driver_data = c;

	cpumask_copy(policy->cpus, &c->related_cpus);

	return 0;

err: